scrapy在保存json文件时容易乱码 settings.py文件改动:ITEM_PIPELINES = { 'tutorial.pipelines.TutorialPipeline': 300,} pipeline.py文件改动:import jsonimport codecsclass Tu......
scrapy-fake-useragent包官网:https://pypi.org/project/scrapy-fake-useragent/ 安装: pip install scrapy-fake-useragent