Revert "Fix SetSearchLive, SetSearchPhotos and SetSearchVideos"

This reverts commit b6887fca9c.
This commit is contained in:
Alexander Sheiko 2020-12-23 19:24:08 +02:00
parent b6887fca9c
commit 1f25820556
3 changed files with 18 additions and 32 deletions

View file

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