Add GetTweet

This commit is contained in:
Alexander Sheiko 2021-03-09 10:40:22 +02:00
parent bc84566d02
commit a8089a552e
3 changed files with 80 additions and 0 deletions

View file

@ -38,6 +38,27 @@ func main() {
It appears you can ask for up to 50 tweets (limit ~3200 tweets).
### Get single tweet
```golang
package main
import (
"fmt"
twitterscraper "github.com/n0madic/twitter-scraper"
)
func main() {
scraper := twitterscraper.New()
tweet, err := scraper.GetTweet("1328684389388185600")
if err != nil {
panic(err)
}
fmt.Println(tweet.Text)
}
```
### Search tweets by query standard operators
Tweets containing “twitter” and “scraper” and “data“, filtering out retweets: