增加 requirements.txt

This commit is contained in:
Jalin
2019-01-08 02:14:16 +08:00
parent 8bcbaf4cde
commit 2a734bdfe6
4 changed files with 22 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ def main():
Query.run()
if not Const.IS_TEST:
while True:
sleep(1)
sleep(10000)
CommonLog.test_complete()

View File

@@ -1,7 +1,5 @@
from os import path
# from py12306.helpers.config import Config
# 12306 账号
USER_ACCOUNTS = []

View File

@@ -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);

21
requirements.txt Normal file
View File

@@ -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