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})
评论列表
文章目录