Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/testerSunshine/12306
Browse files Browse the repository at this point in the history
  • Loading branch information
testerSunshine committed Oct 17, 2019
2 parents df61252 + 96b06d5 commit 0a8ae1d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
群里面也可以下载
2. git仓库下载:https://github.com/testerSunshine/12306model.git
```
- 自托管云打码服务器搭建:[12306_code_server](https://github.com/YinAoXiong/12306_code_server)
- 项目依赖包查看 [requirements.txt](requirements.txt)
- 安装方法x:
- root用户(避免多python环境产生问题): `pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt`
Expand Down
9 changes: 9 additions & 0 deletions TickerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@
# ps: 请不要一直依赖云服务器资源,在此向提供服务器的"do it"同学表示感谢
AUTO_CODE_TYPE = 3

HOST="34.97.127.118:8000"
REQ_URL="/verify/base64/"
HTTP_TYPE="http"
# HOST="12306.yinaoxiong.cn" #备用服务器稳定性较差
# REQ_URL="/verify/base64/"
# HTTP_TYPE="https"



# 邮箱配置,如果抢票成功,将通过邮件配置通知给您
# 列举163
# email: "xxx@163.com"
Expand Down
8 changes: 4 additions & 4 deletions config/urlConf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# coding=utf-8
import random

import TickerConfig
import time

urls = {
Expand Down Expand Up @@ -588,15 +588,15 @@
},

"autoVerifyImage": { # 云打码接口
"req_url": "/verify/base64/",
"req_url": TickerConfig.REQ_URL,
"req_type": "post",
"Referer": "",
"Host": "34.97.127.118:8000",
"Host": TickerConfig.HOST,
"re_try": 6,
"re_time": 10,
"s_time": 0.001,
"is_logger": True,
"is_json": True,
"httpType": "http"
"httpType": TickerConfig.HTTP_TYPE
},
}

0 comments on commit 0a8ae1d

Please sign in to comment.