run.py 文件源码

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

项目:blog_analysis 作者: Databrawl 项目源码 文件源码
def estimate_traffic():
    """
    Analyze traffic of the scraped blogs.
    """
    process = CrawlerProcess(settings)
    blogs_file = get_latest_file(settings['BLOGS_FEED_DIR'])
    with open(blogs_file) as f:
        blogs = json.load(f)
    process.crawl(TrafficSpider, blogs)
    process.start()  # the script will block here until the crawling is done
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号