Update README
This commit is contained in:
parent
5a6607f6c4
commit
f17f720cf7
1 changed files with 8 additions and 9 deletions
17
README.md
17
README.md
|
|
@ -8,6 +8,12 @@ No API rate limits. No tokens needed. No restrictions. Extremely fast.
|
||||||
|
|
||||||
You can use this library to get the text of any user's Tweets trivially.
|
You can use this library to get the text of any user's Tweets trivially.
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
```shell
|
||||||
|
go get -u github.com/n0madic/twitter-scraper
|
||||||
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
### Get user tweets
|
### Get user tweets
|
||||||
|
|
@ -21,7 +27,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
for tweet := range twitterscraper.GetTweets(context.Background(), "Twitter", 25) {
|
for tweet := range twitterscraper.GetTweets(context.Background(), "Twitter", 5) {
|
||||||
if tweet.Error != nil {
|
if tweet.Error != nil {
|
||||||
panic(tweet.Error)
|
panic(tweet.Error)
|
||||||
}
|
}
|
||||||
|
|
@ -57,8 +63,7 @@ func main() {
|
||||||
|
|
||||||
The search ends if we have 50 tweets.
|
The search ends if we have 50 tweets.
|
||||||
|
|
||||||
See <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.
|
||||||
|
|
||||||
|
|
||||||
### Get profile
|
### Get profile
|
||||||
|
|
||||||
|
|
@ -97,9 +102,3 @@ func main() {
|
||||||
fmt.Println(trends)
|
fmt.Println(trends)
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Installation
|
|
||||||
|
|
||||||
```shell
|
|
||||||
go get -u github.com/n0madic/twitter-scraper
|
|
||||||
```
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue