This repository has been archived on 2024-09-10. You can view files and clone it, but cannot push or open issues or pull requests.
Douyin_Web_Live/main.py
2021-11-30 20:33:32 +08:00

16 lines
391 B
Python

import sys
from urllib.parse import urlparse
from scripts import watcher, webdriver
from config.helper import config
if __name__ == '__main__':
if len(sys.argv) == 1 or not urlparse(sys.argv[1]).scheme:
print('Invalid url provided, please check...')
sys.exit(1)
webdriver.go(sys.argv[1])
w = watcher.Watcher(directory=config()['watchdog']['dir'])
w.run()