Skip to content

Commit

Permalink
使用requests session加速
Browse files Browse the repository at this point in the history
  • Loading branch information
huzhifeng committed Dec 1, 2014
1 parent ad0802c commit ee51a6e
Show file tree
Hide file tree
Showing 4 changed files with 629 additions and 565 deletions.
60 changes: 58 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,63 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]

# C extensions
*.so

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

# 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
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Added by huzhifeng
config.ini
*.txt
*.jpeg
*.jpg
*.gif
*.pyc
test
.idea
test
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ Usage
'-m', '--mail', '可选参数, 开启邮件提醒(用于节假日抢票时自动刷票提醒)'
</pre>

安装依赖包:
`pip install huzhifeng`

直接运行:
`python py12306.py`
或者指定参数:
Expand Down
2 changes: 1 addition & 1 deletion config-sample.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#登陆账号和密码
#登陆账号和密码
[login]
username=yourusername
password=yourpassword
Expand Down
Loading

0 comments on commit ee51a6e

Please sign in to comment.