update readme and changelog
This commit is contained in:
parent
ec8e559b93
commit
9b34acb926
2 changed files with 24 additions and 0 deletions
|
|
@ -2,8 +2,11 @@
|
||||||
|
|
||||||
## v0.0.13
|
## v0.0.13
|
||||||
|
|
||||||
|
01.10.2024
|
||||||
|
|
||||||
- Added methods `GetTweetsAndReplies`, `FetchTweetsAndReplies`, `FetchTweetsAndRepliesByUserID` thanks to @thewh1teagle
|
- Added methods `GetTweetsAndReplies`, `FetchTweetsAndReplies`, `FetchTweetsAndRepliesByUserID` thanks to @thewh1teagle
|
||||||
- Added methods `GetAccountSettings` and `GetAccountList` thanks to @thewh1teagle
|
- Added methods `GetAccountSettings` and `GetAccountList` thanks to @thewh1teagle
|
||||||
|
- Added methods `GetUserAgent` and `SetUserAgent`
|
||||||
|
|
||||||
## v0.0.12
|
## v0.0.12
|
||||||
|
|
||||||
|
|
|
||||||
21
README.md
21
README.md
|
|
@ -50,6 +50,7 @@ You can use this library to get tweets, profiles, and trends trivially.
|
||||||
- [Upload media](#upload-media)
|
- [Upload media](#upload-media)
|
||||||
- [Account](#account)
|
- [Account](#account)
|
||||||
- [Connection](#connection)
|
- [Connection](#connection)
|
||||||
|
- [User-Agent](#user-agent)
|
||||||
- [Proxy](#proxy)
|
- [Proxy](#proxy)
|
||||||
- [HTTP(s)](#https)
|
- [HTTP(s)](#https)
|
||||||
- [SOCKS5](#socks5)
|
- [SOCKS5](#socks5)
|
||||||
|
|
@ -670,6 +671,26 @@ accounts, err := scraper.GetAccountList()
|
||||||
|
|
||||||
## Connection
|
## Connection
|
||||||
|
|
||||||
|
### User-Agent
|
||||||
|
|
||||||
|
By default client uses user agent from mac google chrome v129.
|
||||||
|
|
||||||
|
```
|
||||||
|
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
|
||||||
|
```
|
||||||
|
|
||||||
|
You can set any client you want with method `SetUserAgent`.
|
||||||
|
|
||||||
|
```golang
|
||||||
|
scraper.SetUserAgent("user-agent")
|
||||||
|
```
|
||||||
|
|
||||||
|
To get current user agent use `GetUserAgent`.
|
||||||
|
|
||||||
|
```golang
|
||||||
|
agent := scraper.GetUserAgent()
|
||||||
|
```
|
||||||
|
|
||||||
### Proxy
|
### Proxy
|
||||||
|
|
||||||
#### HTTP(s)
|
#### HTTP(s)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue