Skip to content

Commit 9b34acb

Browse files
committed
update readme and changelog
1 parent ec8e559 commit 9b34acb

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
## v0.0.13
44

5+
01.10.2024
6+
57
- Added methods `GetTweetsAndReplies`, `FetchTweetsAndReplies`, `FetchTweetsAndRepliesByUserID` thanks to @thewh1teagle
68
- Added methods `GetAccountSettings` and `GetAccountList` thanks to @thewh1teagle
9+
- Added methods `GetUserAgent` and `SetUserAgent`
710

811
## v0.0.12
912

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ You can use this library to get tweets, profiles, and trends trivially.
5050
- [Upload media](#upload-media)
5151
- [Account](#account)
5252
- [Connection](#connection)
53+
- [User-Agent](#user-agent)
5354
- [Proxy](#proxy)
5455
- [HTTP(s)](#https)
5556
- [SOCKS5](#socks5)
@@ -670,6 +671,26 @@ accounts, err := scraper.GetAccountList()
670671

671672
## Connection
672673

674+
### User-Agent
675+
676+
By default client uses user agent from mac google chrome v129.
677+
678+
```
679+
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
680+
```
681+
682+
You can set any client you want with method `SetUserAgent`.
683+
684+
```golang
685+
scraper.SetUserAgent("user-agent")
686+
```
687+
688+
To get current user agent use `GetUserAgent`.
689+
690+
```golang
691+
agent := scraper.GetUserAgent()
692+
```
693+
673694
### Proxy
674695

675696
#### HTTP(s)

0 commit comments

Comments
 (0)