crawler.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:neogoso 作者: neogoso 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号