From 2a734bdfe6b0cb5835df0d6dc760c66fcdda895d Mon Sep 17 00:00:00 2001 From: Jalin Date: Tue, 8 Jan 2019 02:14:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20requirements.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- py12306/config.py | 2 -- py12306/helpers/config.py | 14 -------------- requirements.txt | 21 +++++++++++++++++++++ 4 files changed, 22 insertions(+), 17 deletions(-) delete mode 100644 py12306/helpers/config.py create mode 100644 requirements.txt diff --git a/main.py b/main.py index f0b2dd0..ccba6dc 100644 --- a/main.py +++ b/main.py @@ -18,7 +18,7 @@ def main(): Query.run() if not Const.IS_TEST: while True: - sleep(1) + sleep(10000) CommonLog.test_complete() diff --git a/py12306/config.py b/py12306/config.py index a598ba4..59acbc5 100644 --- a/py12306/config.py +++ b/py12306/config.py @@ -1,7 +1,5 @@ from os import path -# from py12306.helpers.config import Config - # 12306 账号 USER_ACCOUNTS = [] diff --git a/py12306/helpers/config.py b/py12306/helpers/config.py deleted file mode 100644 index b3ad0a6..0000000 --- a/py12306/helpers/config.py +++ /dev/null @@ -1,14 +0,0 @@ -# from py12306.config import get_value_by_key -from py12306.config import get_value_by_key - - -class BaseConfig: - AA = 'USER_ACCOUNTS' - - -class Config(BaseConfig): - - @classmethod - def get(cls, key, default=None): - self = cls() - return get_value_by_key(key); diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..3879e80 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,21 @@ +appdirs==1.4.3 +beautifulsoup4==4.7.0 +bs4==0.0.1 +certifi==2018.11.29 +chardet==3.0.4 +cssselect==1.0.3 +fake-useragent==0.1.11 +idna==2.8 +lxml==4.3.0 +parse==1.9.0 +pyee==5.0.0 +pyppeteer==0.0.25 +pyquery==1.4.0 +requests==2.21.0 +requests-html==0.9.0 +six==1.12.0 +soupsieve==1.6.2 +tqdm==4.28.1 +urllib3==1.24.1 +w3lib==1.19.0 +websockets==7.0