Extend timeline object
This commit is contained in:
parent
0183c20011
commit
34aae0d008
5 changed files with 311 additions and 306 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue