Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
V-I-C-T-O-R committed Jan 11, 2019
0 parents commit 8465aae
Show file tree
Hide file tree
Showing 30 changed files with 8,042 additions and 0 deletions.
107 changes: 107 additions & 0 deletions .gitignore
@@ -0,0 +1,107 @@
#idea package
.idea/

# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/
.pytest_cache/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
Binary file added 1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions LICENSE
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2018 Victor

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
45 changes: 45 additions & 0 deletions ReadMe.md
@@ -0,0 +1,45 @@
12306
=======
###### 鉴于市场上的大多数抢票软件的安全问题和效率问题,就手动修改了开源的代码来为自己赢得捡漏的机会,谁叫本电脑是linux系统呢。缩减刷新的频率也是一种策略,哈哈!!!
* 这是一款工具
* 这是一款抢票工具
* 这是一款[12306](http://www.12306.cn/)自动抢票开源工具
* 这是一款[12306](http://www.12306.cn/)自动抢票开源工具基础上优化更改的捡漏器

#### Usage
1.[configure.py](https://github.com/V-I-C-T-O-R/12306/blob/master/configure.py)中配置信息:
* 身份信息
* 车票信息
* 订票策略
* 邮件配置
* 短信配置

2. 执行[funckeverything.py](https://github.com/V-I-C-T-O-R/12306/blob/master/fuckeverything.py)

#### Notice
需要额外安装的第三方库:
* [requests](https://github.com/requests/requests)
* [Pillow](https://github.com/python-pillow/Pillow)
* [PrettyTable](https://github.com/lmaurits/prettytable)
* [colorama](https://github.com/tartley/colorama)

#### 新功能
* 新增自动url变更请求
* 验证码自动识别调用(调用免费接口)
* 抢票成功邮件发送
* 抢票成功短信发送[twilio](https://cuiqingcai.com)(短信支持,无需pip install)
* 内部流程优化

#### 你可以做啥
* 要改成多线程多进程随你咯
* 添加代理池随你咯
* 添加多账户支持随你咯
* 方便个人,不为盈利
* oh! 对了,现在是2019年了,加油!

效果图如下:
![12306](https://github.com/V-I-C-T-O-R/12306/blob/master/1.png)

###### 提示
* 借鉴了[EasyTrain](https://github.com/Why8n/EasyTrain "EasyTrain")库的代码
* 优化当前代码和流程
Empty file added conf/__init__.py
Empty file.

0 comments on commit 8465aae

Please sign in to comment.