Python爬虫:scrapy查看Cookie值

版权声明:本文为博主原创文章,欢迎转载,请注明出处 https://blog.csdn.net/mouday/article/details/81018982
#请求Cookie
Cookie = response.request.headers.getlist('Cookie')

#响应Cookie
Cookie = response.headers.getlist('Set-Cookie')

参考:
[Scrapy]模拟登陆并获取Cookie值

展开阅读全文

没有更多推荐了,返回首页