update readme
This commit is contained in:
parent
ad4df95c0d
commit
9987e7b8be
1 changed files with 14 additions and 6 deletions
20
README.md
20
README.md
|
|
@ -85,6 +85,15 @@ If you don't want to use your account, you can try login as a Twitter app:
|
||||||
account, err := scraper.LoginOpenAccount()
|
account, err := scraper.LoginOpenAccount()
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can manually set a specific user account:
|
||||||
|
|
||||||
|
```golang
|
||||||
|
scraper.WithOpenAccount(twitterscraper.OpenAccount{
|
||||||
|
OAuthToken: "TOKEN",
|
||||||
|
OAuthTokenSecret: "TOKEN_SECRET",
|
||||||
|
})
|
||||||
|
```
|
||||||
|
|
||||||
### Get user tweets
|
### Get user tweets
|
||||||
|
|
||||||
```golang
|
```golang
|
||||||
|
|
@ -173,7 +182,6 @@ The search ends if we have 50 tweets.
|
||||||
|
|
||||||
See [Rules and filtering](https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/standard-operators) for build standard queries.
|
See [Rules and filtering](https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/standard-operators) for build standard queries.
|
||||||
|
|
||||||
|
|
||||||
#### Set search mode
|
#### Set search mode
|
||||||
|
|
||||||
```golang
|
```golang
|
||||||
|
|
@ -182,11 +190,11 @@ scraper.SetSearchMode(twitterscraper.SearchLatest)
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
* `twitterscraper.SearchTop` - default mode
|
- `twitterscraper.SearchTop` - default mode
|
||||||
* `twitterscraper.SearchLatest` - live mode
|
- `twitterscraper.SearchLatest` - live mode
|
||||||
* `twitterscraper.SearchPhotos` - image mode
|
- `twitterscraper.SearchPhotos` - image mode
|
||||||
* `twitterscraper.SearchVideos` - video mode
|
- `twitterscraper.SearchVideos` - video mode
|
||||||
* `twitterscraper.SearchUsers` - user mode
|
- `twitterscraper.SearchUsers` - user mode
|
||||||
|
|
||||||
### Get profile
|
### Get profile
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue