Twitter 搜索 API 多个主题标签
Twitter Search API multiple hash tags
我正在尝试在 Twitter 搜索 API 中查询几个主题标签。我在语法上苦苦挣扎。
for tweet in tweepy.Cursor(api.search, q="#ioc").items():
print(tweet.created_at, tweet.text)
csvWriter.writerow([tweet.created_at, tweet.text.encode('utf-8')])
它只适用于一个主题标签。但我需要搜索至少两个或更多标签。请帮忙/
tweepy.Cursor(api.search, q="#hashtag1 AND #hashtag2")
要么
tweepy.Cursor(api.search, q="#hashtag1 OR #hashtag2")
我正在尝试在 Twitter 搜索 API 中查询几个主题标签。我在语法上苦苦挣扎。
for tweet in tweepy.Cursor(api.search, q="#ioc").items():
print(tweet.created_at, tweet.text)
csvWriter.writerow([tweet.created_at, tweet.text.encode('utf-8')])
它只适用于一个主题标签。但我需要搜索至少两个或更多标签。请帮忙/
tweepy.Cursor(api.search, q="#hashtag1 AND #hashtag2")
要么
tweepy.Cursor(api.search, q="#hashtag1 OR #hashtag2")