我对python很新,并且在处理twitter API时遇到了困难。我一直在使用tweepy并使用类似于以前在statsexchange上回答的几个不同问题的代码。当我运行大多数示例时,我得到了很好的结果。但是,当我从那个涉及tweepy.Cursor(api.search,...)的代码运行时,我总是得到以下错误:
tweepy.error.TweepError:[{u' message':u'查询参数丢失。',u'代码':25}]
运行此代码时会发生此错误:
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
或者当我运行时:
for tweet in tweepy.Cursor(api.search,
q="#IS",
count=100,
result_type="recent",
include_entities=True,
lang="en").items():
print tweet.tweet
如果这些错误在之前的问题中似乎正常工作会导致此错误吗?