user.py 文件源码

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

项目:Spider 作者: poluo 项目源码 文件源码
def parse_comment(self, response):
        # Do not show all comment
        res = LinkExtractor(allow=('.*/user/.*'), allow_domains='www.reddit.com').extract_links(response)
        for one in res:
            path = one.url.replace('https://www.reddit.com', '')
            yield Request(url=one.url, callback=self.parse_user, meta={'cookies': True, 'path': path})
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号