add SearchLive SearchPhotos SearchVideos
This commit is contained in:
parent
c9ba00cad7
commit
7363f676bf
3 changed files with 51 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue