Deprecate default scraper
This commit is contained in:
parent
6bf6dc4b69
commit
bfb4020597
9 changed files with 29 additions and 42 deletions
|
|
@ -10,7 +10,7 @@ func (s *Scraper) SearchTweets(ctx context.Context, query string, maxTweetsNbr i
|
|||
return getTweetTimeline(ctx, query, maxTweetsNbr, s.FetchSearchTweets)
|
||||
}
|
||||
|
||||
// SearchTweets wrapper for default Scraper
|
||||
// Deprecated: SearchTweets wrapper for default Scraper
|
||||
func SearchTweets(ctx context.Context, query string, maxTweetsNbr int) <-chan *TweetResult {
|
||||
return defaultScraper.SearchTweets(ctx, query, maxTweetsNbr)
|
||||
}
|
||||
|
|
@ -20,7 +20,7 @@ func (s *Scraper) SearchProfiles(ctx context.Context, query string, maxProfilesN
|
|||
return getUserTimeline(ctx, query, maxProfilesNbr, s.FetchSearchProfiles)
|
||||
}
|
||||
|
||||
// SearchProfiles wrapper for default Scraper
|
||||
// Deprecated: SearchProfiles wrapper for default Scraper
|
||||
func SearchProfiles(ctx context.Context, query string, maxProfilesNbr int) <-chan *ProfileResult {
|
||||
return defaultScraper.SearchProfiles(ctx, query, maxProfilesNbr)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue