In depth Twitter Search API in tweepy -
i wanted search tweets "by keyword" "given screen name."
example, tweets "bbcnews" "weather".
looking tweepy library, found code:
tweepy.cursor(api.search, q="weather", rpp=100, result_type="recent", include_entities=true, lang="en")
however, how gonna filter tweets such bbcnews?
thank in advance.
the list of options can use filter tweets find can found here : https://dev.twitter.com/rest/public/search
you can put them directly in query, without caring tweepy. in case, suggest
tweepy.cursor(api.search, q="weather from:bbcnews", rpp=100, result_type="recent", include_entities=true, lang="en")
you can add -filter:retweets
request rid of retweets.
Comments
Post a Comment