scrapy---pycharm调试

from scrapy.crawler import CrawlerProcess
from scrapy.utils.project import get_project_settings

# 注意与scrapy.cfg在同一级目录
if __name__ == '__main__':
    process = CrawlerProcess(get_project_settings())

    process.crawl('cn10010')
    process.start()

原文地址:https://www.cnblogs.com/ls1997/p/11341817.html