12306 抢票

liuyuqi-dellpc b9b1780dfd 0 1 year ago
.vscode 2b9a89445f 增加余票监控 1 year ago
conf 2b9a89445f 增加余票监控 1 year ago
data 17060a4158 add get_code_pic2 获取验证码 1 year ago
fuck12306 b9b1780dfd 0 1 year ago
test 2b9a89445f 增加余票监控 1 year ago
.dockerignore 2b9a89445f 增加余票监控 1 year ago
.gitignore 2b9a89445f 增加余票监控 1 year ago
Dockerfile 2b9a89445f 增加余票监控 1 year ago
README.md 17060a4158 add get_code_pic2 获取验证码 1 year ago
docker-compose.debug.yml 2b9a89445f 增加余票监控 1 year ago
docker-compose.yml 2b9a89445f 增加余票监控 1 year ago
main.py b9b1780dfd 0 1 year ago
requirements.txt 2b9a89445f 增加余票监控 1 year ago

README.md

fuck12306

12306 抢票助手

Develop

依赖:

  • mysql
  • redis

打开 conf/config.ini 配置邮件提醒。

监控余票,有余票时自动邮件推送:

    crawl12306=Crawl12306()
    crawl12306.monitor()

pc网页版,模拟操作抢票:

    python fuck12306/splinter_12306.py

生成验证码,保存到 data/pic 目录中:

    crawl12306.get_code_pic(299)
    crawl12306.get_code_pic2(10000)

Licenses