Getting tweets by the maximum number, not by pages as before

BREAKING CHANGE!
This commit is contained in:
Alexander Sheiko 2020-06-15 16:16:08 +03:00
parent a5117bb5c4
commit 49baceb5b4
3 changed files with 19 additions and 10 deletions

View file

@ -28,7 +28,7 @@ import (
)
func main() {
for tweet := range twitterscraper.GetTweets(context.Background(), "Twitter", 5) {
for tweet := range twitterscraper.GetTweets(context.Background(), "Twitter", 50) {
if tweet.Error != nil {
panic(tweet.Error)
}
@ -37,7 +37,7 @@ func main() {
}
```
It appears you can ask for up to 5 pages of tweets reliably.
It appears you can ask for up to 50 tweets.
### Search tweets by query standard operators