Remove deprecated functions
Removed global default scraper
This commit is contained in:
parent
3eb86161ce
commit
66780eb801
5 changed files with 0 additions and 56 deletions
10
tweets.go
10
tweets.go
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue