full_analysis.py 文件源码

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

项目:jd_analysis 作者: awolfly9 项目源码 文件源码
def runspider(self):
        configure_logging(install_root_handler = False)
        s = get_project_settings()
        runner = CrawlerRunner(settings = s)

        @defer.inlineCallbacks
        def crawl(**spargs):
            yield runner.crawl(JDItemInfoSpider, **spargs)
            yield runner.crawl(JDCommentSpider, **spargs)
            reactor.stop()

        crawl(**self.spargs)
        reactor.run()  # the script will block here until the last crawl call is finished

    # ????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号