Extend timeline object

This commit is contained in:
Alexander Sheiko 2021-07-16 11:08:43 +03:00
parent 0183c20011
commit 34aae0d008
5 changed files with 311 additions and 306 deletions

View file

@ -74,7 +74,7 @@ func (s *Scraper) FetchSearchTweets(query string, maxTweetsNbr int, cursor strin
if err != nil {
return nil, "", err
}
tweets, nextCursor := parseTimeline(timeline)
tweets, nextCursor := timeline.parseTweets()
return tweets, nextCursor, nil
}
@ -84,6 +84,6 @@ func (s *Scraper) FetchSearchProfiles(query string, maxProfilesNbr int, cursor s
if err != nil {
return nil, "", err
}
users, nextCursor := parseUsers(timeline)
users, nextCursor := timeline.parseUsers()
return users, nextCursor, nil
}