python 2.7 - twitter search api not returning exact phrase results everytime -


the twitter search api not returning tweets have exact phrase. i'm using quotes documentation specifies https://dev.twitter.com/rest/public/search

here search looks like

search_phrase = 'puppies' tweet_results = [status status in tweepy.cursor(api.search, q='"{}"'.format(search_phrase), lang = 'en', count = 100).items(1000)] 

of 1000 tweets 46 of them not contain "puppies" here example output below. perhaps "puppies" located somewhere else in tweet object? maybe in users section of profile. below bad responses.

rt @3_beards: oh yeah! @silicondrinkabt growing! welcoming @drinkabouttlv family more on way!

that moment when forget you're not important person them

rt @3_beards: oh yeah! @silicondrinkabt growing! welcoming @drinkabouttlv family more on way!

those few of bad results.


Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -