Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.2k views
in Technique[技术] by (71.8m points)

怎么获取随机Token值

在爬虫:http://v.mp.uc.cn/video.html?uc_param_str=frdnsnpfvecpntnwprdssskt&from=media#!wm_cid=386439659430872064!!wm_aid=ee1fc01faa1e46758373d1b0186bd03a!!wm_id=d9314383998c4a43b46f7524c5d96849时,发现每次请求此网页时会随机生成一个Token值,爬虫目标是获取到随机生成的Token值,然后访问json文件爬取数据:http://v.mp.uc.cn/api/vps?tok...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

??他token放在哪儿就到哪儿去获取就可以了呀。
放在cookie,你就在返回的cookie里面去找
放在header,你就读取header不就行了


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...