Twitter 如何转发特定用户+;某些#hastag w/Tweepy
我已经通读了tweepy doc,但找不到任何与使用特定标签转发特定用户相关的内容Twitter 如何转发特定用户+;某些#hastag w/Tweepy,twitter,tweepy,Twitter,Tweepy,我已经通读了tweepy doc,但找不到任何与使用特定标签转发特定用户相关的内容 如果tweepy没有此功能,是否有其他方法存档此功能 我想你可以用这个过滤器。 我个人通常使用散播过滤器。 使用on_data()处理状态并获取所需信息。 然后转发它。 你应该有这样的东西: class mainStreamListener(tweepy.StreamListener): def on_data(self, status): #SOME CODE HERE
如果tweepy没有此功能,是否有其他方法存档此功能 我想你可以用这个过滤器。 我个人通常使用散播过滤器。 使用on_data()处理状态并获取所需信息。 然后转发它。 你应该有这样的东西:
class mainStreamListener(tweepy.StreamListener):
def on_data(self, status):
#SOME CODE HERE
id = status.id_str #Get the status ID
api.retweet(id) #Retweet the status by providing its ID
def on_error(self, status_code):
#SOME CODE HERE
我想你可以用这个过滤器。 我个人通常使用散播过滤器。 使用on_data()处理状态并获取所需信息。 然后转发它。 你应该有这样的东西:
class mainStreamListener(tweepy.StreamListener):
def on_data(self, status):
#SOME CODE HERE
id = status.id_str #Get the status ID
api.retweet(id) #Retweet the status by providing its ID
def on_error(self, status_code):
#SOME CODE HERE
问题类已解决的w/搜索函数“from:@user1和#hashtag”现在我正在下一部分研究如何转发这些搜索结果问题类已解决的w/搜索函数“from:@user1和#hashtag”现在我正在下一部分研究如何转发这些搜索结果