Add GetTweet
This commit is contained in:
parent
bc84566d02
commit
a8089a552e
3 changed files with 80 additions and 0 deletions
21
README.md
21
README.md
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue