You've already forked Douyin_Web_Live
intro pyyml
This commit is contained in:
0
config/__init__.py
Normal file
0
config/__init__.py
Normal file
BIN
config/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
config/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
config/__pycache__/helper.cpython-39.pyc
Normal file
BIN
config/__pycache__/helper.cpython-39.pyc
Normal file
Binary file not shown.
9
config/helper.py
Normal file
9
config/helper.py
Normal file
@ -0,0 +1,9 @@
|
||||
from pathlib import Path
|
||||
import yaml
|
||||
|
||||
def config():
|
||||
settings_file = str(Path(__file__).parent.absolute()) + '/settings.yml'
|
||||
|
||||
with open(settings_file, 'r') as f:
|
||||
return yaml.load(f, Loader=yaml.FullLoader)
|
||||
|
11
config/settings.yml
Normal file
11
config/settings.yml
Normal file
@ -0,0 +1,11 @@
|
||||
watchdog:
|
||||
dir: '/Users/geng/douyin_live/'
|
||||
|
||||
webdriver:
|
||||
bin: '/usr/local/bin/chromedriver'
|
||||
proxy: '127.0.0.1:8080'
|
||||
|
||||
mongo:
|
||||
uri : 'mongodb://localhost:27017/'
|
||||
dbname: 'tiktok'
|
||||
enabled: 0
|
Reference in New Issue
Block a user