Remove deprecated functions

Removed global default scraper
This commit is contained in:
Alexander Sheiko 2023-05-11 14:15:56 +03:00
parent 3eb86161ce
commit 66780eb801
5 changed files with 0 additions and 56 deletions

View file

@ -11,11 +11,6 @@ func (s *Scraper) GetTweets(ctx context.Context, user string, maxTweetsNbr int)
return getTweetTimeline(ctx, user, maxTweetsNbr, s.FetchTweets)
}
// Deprecated: GetTweets wrapper for default Scraper
func GetTweets(ctx context.Context, user string, maxTweetsNbr int) <-chan *TweetResult {
return defaultScraper.GetTweets(ctx, user, maxTweetsNbr)
}
// FetchTweets gets tweets for a given user, via the Twitter frontend API.
func (s *Scraper) FetchTweets(user string, maxTweetsNbr int, cursor string) ([]*Tweet, string, error) {
userID, err := s.GetUserIDByScreenName(user)
@ -76,8 +71,3 @@ func (s *Scraper) GetTweet(id string) (*Tweet, error) {
}
return nil, fmt.Errorf("tweet with ID %s not found", id)
}
// Deprecated: GetTweet wrapper for default Scraper
func GetTweet(id string) (*Tweet, error) {
return defaultScraper.GetTweet(id)
}