Use enum search mode
This commit is contained in:
parent
1f25820556
commit
0c484a61b1
3 changed files with 45 additions and 42 deletions
16
README.md
16
README.md
|
|
@ -65,12 +65,22 @@ func main() {
|
|||
|
||||
The search ends if we have 50 tweets.
|
||||
|
||||
### Search tweet in realtime
|
||||
See [Rules and filtering](https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/standard-operators) for build standard queries.
|
||||
|
||||
|
||||
#### Set search mode
|
||||
|
||||
```golang
|
||||
scraper.SearchLive(true)
|
||||
scraper.SetSearchMode(twitterscraper.SearchLatest)
|
||||
```
|
||||
|
||||
See [Rules and filtering](https://developer.twitter.com/en/docs/tweets/rules-and-filtering/overview/standard-operators) for build standard queries.
|
||||
Options:
|
||||
|
||||
* `twitterscraper.SearchTop` - default mode
|
||||
* `twitterscraper.SearchLatest` - live mode
|
||||
* `twitterscraper.SearchPeople` - user mode
|
||||
* `twitterscraper.SearchPhotos` - image mode
|
||||
* `twitterscraper.SearchVideos` - video mode
|
||||
|
||||
### Get profile
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue