Deprecate default scraper

This commit is contained in:
Alexander Sheiko 2022-05-04 11:55:12 +03:00
parent 6bf6dc4b69
commit bfb4020597
9 changed files with 29 additions and 42 deletions

View file

@ -213,25 +213,3 @@ scraper.WithDelay(5)
```golang
scraper.WithReplies(true)
```
### Default Scraper (Ad hoc)
In simple cases, you can use the default scraper without creating an object instance
```golang
import twitterscraper "github.com/n0madic/twitter-scraper"
// for tweets
twitterscraper.GetTweets(context.Background(), "Twitter", 50)
// for tweets with replies
twitterscraper.WithReplies(true).GetTweets(context.Background(), "Twitter", 50)
// for search
twitterscraper.SearchTweets(context.Background(), "twitter", 50)
// for profile
twitterscraper.GetProfile("Twitter")
// for trends
twitterscraper.GetTrends()
```