I have some python code that can either get a stream or do a search. The stream works fine, but when I switch to the search, I get only one result back no matter what I search for. Is this expected? Below is a snippet of my code.
Thanks for your time.
def fetchsamples():
#url = "https://stream.twitter.com/1/statuses/sample.json"
url = "https://api.twitter.com/1.1/search/tweets.json?q=%23obama"
parameters = []
response = twitterreq(url, "GET", parameters)
for line in response:
print line.strip()