mirror of
https://github.com/simon987/mobilism_scrape.git
synced 2025-04-19 10:36:45 +00:00
login
This commit is contained in:
parent
9cf3d5ccee
commit
7f494fd8f1
13
run
13
run
@ -13,14 +13,14 @@ from urllib.parse import urlparse, unquote
|
|||||||
import requests
|
import requests
|
||||||
from bs4 import BeautifulSoup
|
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:
|
with open("tmp.conf", "w") as f:
|
||||||
# f.write(secret["rclone"])
|
f.write(secret["rclone"])
|
||||||
|
|
||||||
session = requests.Session()
|
session = requests.Session()
|
||||||
|
|
||||||
# TOPIC_URL = os.environ["TASK_RECIPE"]
|
TOPIC_URL = os.environ["TASK_RECIPE"]
|
||||||
|
|
||||||
PREMIUM_LINKS = (
|
PREMIUM_LINKS = (
|
||||||
"tusfiles.com", "userscloud.com", "uploaded.net", "ul.to", "uploaded.to", "2shared.com",
|
"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()
|
login()
|
||||||
# parse_topic(TOPIC_URL)
|
parse_topic(TOPIC_URL)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user