是否有可能流鸣叫使用tweepy或twython鸣叫-ID的列表?我试图用鸣叫使用Twython = t.lookup_status(ID =标识)
“ID”遍历鸣叫-ID的列表
但也有房价限制我想和tweepy的情况下,使用StreamListener,我只能得到一些特定的轨道鸣叫。就我而言,我有tweet_ids的列表,我需要的鸣叫文本,created_at,来源,网址等...或者是有这个任务的任何其他的选择吗?我很新的这一点。请原谅如果问题是天真!
我不太清楚这是你以后有什么,但你可以找到符合使用下面的代码片段(前提是你要有consumer_key
,consumer_secret
,access_token
,从Twitter的API access_token_secret
)一定的鸣叫的ID鸣叫:
import tweepy
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
auth.set_access_token(access_token, access_token_secret)
api = tweepy.API(auth)
public_tweets = api.home_timeline()
good_tweet_ids = [555175389383774208, 555174725136437248]
for tweet in public_tweets:
if tweet.id in good_tweet_ids:
print "".join(x for x in tweet.text if ord(x) < 128)