JS 补环境框架之瑞数vmp全部通杀

全新版本的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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值