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
python twitter tweepy


source to share


No one has answered this question yet

Check out similar questions:

2006
What does ** (double star / asterisk) and * (star / asterisk) do for parameters?
597
Twitter image encoding problem
12
return current tweets to tweepy?
4
How to use before_id and max_id in tweepy?
4
Tweepy: Can You Get Old Tweets With Twitter Search Now?
3
Twitter error code 429 with Tweepy
3
Tweepy: X minutes data stream?
1
Twitter api searches for tweets for hashtags
0
Twitter Stream with tweepy truncated



All Articles
Loading...
X
Show
Funny
Dev
Pics