hightech

(1) settings.py

取消注释:COOKIES_ENABLED = True

 

(2)爬虫xx.py

    def parse(self, response):
        c_dic = {自己抓包}
            # 获取cookies
        xxx自己写原始页面xxx
            yield scrapy.Request(url,cookies=c_dic,callback=self.parse_news)


    def parse_news(self,response):
        xxx跳转页面xxx

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-06-08
  • 2021-05-15
  • 2021-07-11
  • 2022-01-06
  • 2021-08-28
  • 2022-01-21
  • 2021-05-16
猜你喜欢
  • 2021-10-21
  • 2021-08-26
  • 2021-11-24
  • 2021-06-01
  • 2022-01-07
  • 2021-10-13
  • 2021-04-14
相关资源
相似解决方案