dengbaikun / jdh5st Goto Github PK
View Code? Open in Web Editor NEWjdh5st
jdh5st
测试数据:
body = '{"version":3,"waterType":1,"lbsSwitch":true}'
data = {
'appid': "signed_wh5",
'client': "",
'clientVersion': "1.0.0",
't': '1717270212833',
'body': body,
'functionId': "farm_water",
}
self.appid = '28981'
execjs._exceptions.ProgramError: SyntaxError: 缺少标识符
没有任何改动,执行python .\jd_h5st.py
报错位置为
File "D:\project\jupyter_home\jdmonitor\jdh5st\h5st.py", line 181, in get_algo
fp = execjs.compile(js).call("fingerPrint")
我看了一下,这个js函数本身也没有参数传递,不知道是什么原因。
改成优化版.js也一样报错
会提示
{"code":"605","echo":"the request needs to authenticate"}
在某个自动下单的脚本原来基础上面,结合网页最新的接口和你这个h5st库,刚开始测试成功下单,后面一直403,换了好多个请求库都不行,就差ip代理池了,用Java,postman偶尔可以成功拿到数据,浏览器一直都正常访问。
我直接用浏览器的copy as curl(bash)生成代码却一直都能拿数据。
python jd.py
会显示403jd的官方api真是一点都不好用,连价格查询api都没有
提前感谢大佬解答
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.