add SearchLive SearchPhotos SearchVideos

This commit is contained in:
JustHumanz 2020-12-20 00:20:27 +07:00
parent c9ba00cad7
commit 7363f676bf
3 changed files with 51 additions and 0 deletions

View file

@ -37,6 +37,12 @@ func (s *Scraper) FetchSearchTweets(query string, maxTweetsNbr int, cursor strin
if cursor != "" {
q.Add("cursor", cursor)
}
if s.searchMode == "live" {
q.Add("tweet_search_mode", s.searchMode)
} else {
q.Add("result_filter", s.searchMode)
}
req.URL.RawQuery = q.Encode()
var timeline timeline