virtualvocations.py 文件源码

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

项目:remotor 作者: jamiebull1 项目源码 文件源码
def parse(self, response):
        """Get the pagination links and hand them off.
        """
        s = Selector(response)
        pagination = s.css('.pagination')
        pagelinks = [response.url]
        pagelinks.extend(pagination.xpath(
            '//a[contains(@href, "l-remote/p-")]/@href').extract())
#        for pagelink in pagelinks:
        for pagelink in pagelinks[:1]:
            request = Request(
                urljoin(self.root, pagelink),
                callback=self.parse_jobspage,
                dont_filter=True,
                )
            yield request
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号