全新版本的js补环境框架,以chorme114版本为基准补全了所有的方法,实现各类DOM操作和简单的CSS解析,过环境检测绰绰有余,最新开发了过瑞数vmp的api,可仅需要post瑞数的网址即可获取到对应的cookie值,大大降低了开发的门槛,提高开发效率。
看效果吧
import requests
url = 'https://xxxxx'
locaton = {
"ancestorOrigins": {},
"href": "https://xxx/xxx/home-index.html#category=ylqx",
"origin": "https://xxx",
"protocol": "https:",
"host": "xxx",
"hostname": "xxx",
"port": "",
"pathname": "/datasearch/home-index.html",
"search": "",
"hash": "#category=ylqx"
},
data = {
'url':url,
'locaton':locaton,
}
params = {
'location' :locaton
}
response = requests.post('http://127.0.0.1:6010/rs_genWork',json=data)
response = requests.post('http://127.0.0.1:6010/rs_ck',json=params)
cookie = response.json().get('cookie')
print(cookie)
response = requests.get(url,cookies=cookie)
response.encoding = response.apparent_encoding
print(response.text)









需要的朋友随时交流: qq215871581
6349

被折叠的 条评论
为什么被折叠?



