mirror of
				https://github.com/simon987/mobilism_scrape.git
				synced 2025-11-04 03:56:52 +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
 | 
			
		||||
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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user