- 先从网页源码获取
gtk
和token
这两个参数 - 执行生成
sign
的js代码,参数为gtk
和query_str(即要翻译的文本)
sign
和token
皆为提交数据时使用,利用这几个参数来构造请求的数据
- 先打开百度翻译,利用开发者工具,复制请求的cookie, 替换掉代码中的所有cookie
- 然后直接运行代码即可
token
的生成依赖于你的cookie,所以请务必更换成自己的值
gtk
和token
这两个参数sign
的js代码,参数为gtk
和query_str(即要翻译的文本)
sign
和token
皆为提交数据时使用,利用这几个参数来构造请求的数据token
的生成依赖于你的cookie,所以请务必更换成自己的值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.