Tweepy, twitter, request parameters missing, Code25

I am new to python and am having difficulty working with the twitter API. I am working with tweepy and working with code similar to several different questions that statsexchange answered. When I run most of the examples, I get good results. However, when I run the code related to tweepy.Cursor (api.search, ...), I always get the following error:

tweepy.error.TweepError: [{u'message ': no โ€‹โ€‹u'Query parameters are available.', u'code ': 25}]

This error occurs when I run this code:

for tweet in tweepy.Cursor(api.search, q="#ps4", count=100,
                       lang="en",
                       since_id=2014-11-25).items():
    print tweet.created_at, tweet.text

      

Or when I run this:

for tweet in tweepy.Cursor(api.search,
                   q="#IS",
                   count=100,
                   result_type="recent",
                   include_entities=True,
                   lang="en").items():
print tweet.tweet

      

What could be causing this error when they seemed to work fine in the previous questions?

+3


source to share





All Articles