Comments (5)
不好意思啊 , 这个仓库很久没有更新了 , 我刚才测试了一下发现 12306 的接口已经改变 , 所以暂时不能使用了 , 如果你有兴趣的话可以研究一下 12306 的后台接口 🥇
from 12306.
CDN 参数是为了查询到更多的票 , 可以直接使用域名 : kyfw.12306.cn 也可以使用 ip , 因为 12306 网站在全国各地都有分站 , 分站的 ip 不同 , 因为各个分站之间数据同步不是很及时 , 所以通过水平 dns 查询就可以找到还有票的网站
from 12306.
@WangYihang cdn的ip是怎么访问接口的,我把域名替换成ip 总是得不到数据
from 12306.
@Old-King 不好意思啊,这个项目已经很久以前的了,差不多有两年没有维护了,所以 12306 的接口也有变化,再去适配比较麻烦,如果感兴趣的话可以抓包看一下 12306 的查票购票过程、或者阅读本仓库或者类似仓库的代码。
from 12306.
@Old-King 目前的实现是直接向指定 IP 发送 HTTP 请求,然后将 Host 字段设置为应该的域名即可。
from 12306.
Related Issues (2)
- GitHub Issue Spam Test HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 12306.