This commit is contained in:
simon987 2020-07-05 19:05:35 -04:00
parent 9cf3d5ccee
commit 7f494fd8f1

13
run
View File

@ -13,14 +13,14 @@ from urllib.parse import urlparse, unquote
import requests
from bs4 import BeautifulSoup
# secret = json.loads(os.environ["PROJECT_SECRET"])
secret = json.loads(os.environ["PROJECT_SECRET"])
# with open("tmp.conf", "w") as f:
# f.write(secret["rclone"])
with open("tmp.conf", "w") as f:
f.write(secret["rclone"])
session = requests.Session()
# TOPIC_URL = os.environ["TASK_RECIPE"]
TOPIC_URL = os.environ["TASK_RECIPE"]
PREMIUM_LINKS = (
"tusfiles.com", "userscloud.com", "uploaded.net", "ul.to", "uploaded.to", "2shared.com",
@ -112,7 +112,6 @@ def login():
})
# topic_id = get_topic_id(TOPIC_URL)
topic_id = get_topic_id(TOPIC_URL)
login()
# parse_topic(TOPIC_URL)
parse_topic(TOPIC_URL)