摘要: (1) settings.py 取消注释:COOKIES_ENABLED = True (2)爬虫xx.py def parse(self, response): c_dic = {自己抓包} # 获取cookies xxx自己写原始页面xxx yield scrapy.Request(url,co 阅读全文
posted @ 2020-05-07 18:25 HuaBro 阅读(421) 评论(0) 推荐(0) 编辑
摘要: items.py class LianhezaobaospyderItem(scrapy.Item): # define the fields for your item here like: # name = scrapy.Field() # pass body=scrapy.Field() li 阅读全文
posted @ 2020-05-07 18:01 HuaBro 阅读(322) 评论(0) 推荐(0) 编辑