鍍金池/ 問答/數(shù)據(jù)分析&挖掘  Python/ 爬蟲遇到 cookie動態(tài)變化 解決token 問題 服務(wù)器后端的token

爬蟲遇到 cookie動態(tài)變化 解決token 問題 服務(wù)器后端的token 非本地

圖片描述

Request URL:https://e.oppomobile.com/cpdS...
Request Method:POST
Status Code:200 OK
Remote Address:223.202.194.21:443
Referrer Policy:no-referrer-when-downgrade
Connection:keep-alive
Content-Encoding:gzip
Content-Type:application/json;charset=UTF-8
Date:Sat, 10 Feb 2018 15:08:49 GMT
Server:nginx
Set-Cookie:tk=18d28a27dc53c6ade9df5014699b84d4; Expires=Sat, 10-Feb-2018 16:08:49 GMT; Path=/
Set-Cookie:k=7311ec41c0f948e389be7c660e27defd; Expires=Sat, 10-Feb-2018 16:08:49 GMT; Path=/; HttpOnly
Transfer-Encoding:chunked
Vary:Accept-Encoding
X-Server-ID:bj0135
Accept:/
Accept-Encoding:gzip, deflate, br
Accept-Language:zh-CN,zh;q=0.9
Connection:keep-alive
Content-Length:55
Content-Type:application/x-www-form-urlencoded; charset=UTF-8
Cookie:__jsluid=1c0b083d06d937fd7ed91a8a05507402; UM_distinctid=160f8c5a0d038b-0c04c3b0338001-4323461-100200-160f8c5a0d1a09; _ot=0; JSESSIONID=7982ad1b461c41d2936a2c843d5982d3; JSESSIONID=B18BE968EF9C048EF13891898CCEB11D; WEBTOKEN=eyJhbGciOiJIUzUxMiIsImNhbGciOiJERUYifQ.eNqqViouTVKyUjI0AAEjU3NjJR2l1IoCJStDU0MLIwsjYxPzWgAAAAD__w.1yV4jZhOShRZZcS4x2KQuIiqG___wsd2INfqK_kQxzWCT6aFFiFvw2NHRmDj4T4H68s2C53euJQ2TPE_INCthA; tk=8dcfa1a02a78866f46fbe19636d78e22; k=8b2ffcf95e50485b96d48cb7f3e80bae
Host:e.oppomobile.com
Origin:https://e.oppomobile.com
Referer:https://e.oppomobile.com/cpdS...
tk:8dcfa1a02a78866f46fbe19636d78e22
User-Agent:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36
X-Requested-With:XMLHttpRequest
dateRange:2018-02-03~2018-02-09
appId:
moduleId:
type:1

回答
編輯回答
我甘愿

想解決什么??

2018年8月27日 02:45