From 7f494fd8f136a30c27a8543ae0c240b041fd43b0 Mon Sep 17 00:00:00 2001 From: simon987 Date: Sun, 5 Jul 2020 19:05:35 -0400 Subject: [PATCH] login --- run | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/run b/run index f83e333..d1e95ce 100755 --- a/run +++ b/run @@ -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)