def search(self, target, date, maxnum = 10):
''' Collect all the tweets with the keyword
self.target, in the range self.date[0] -
self.date[1]
'''
self.target = target
self.date = date
cursor = tweepy.Cursor(
self.api.search,
q = self.target,
since = self.date[0],
until = self.date[1],
show_user = True)
return cursor.items(maxnum)
评论列表
文章目录