diff --git a/utils/HtmlUtils.py b/utils/HtmlUtils.py index 7fe39e2..d929d9b 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -2,23 +2,15 @@ from fake_useragent import UserAgent import requests,os,json from lxml import html import traceback -import time +import time,re from urllib3.util.retry import Retry from requests.adapters import HTTPAdapter -from myran import Myran from utils.Ntfy import ntfy -import re from utils.comic.PathStr import pathStr class htmlUtils: - myran = Myran() - headers = { - #'cookie':'ipcountry=US; AVS=4eb0s4o5ho9hfmp704ge7jtium; ipm5=bb7f6ac39cebfa37e89bd07544c549fd; cover=1; guide=1; __atuvc=12|39,31|40,5|41,0|42,4|43; __atuvs=635cabf67eff0d49003; yuo1={"objName":"hT3l8Pyn15Uf","request_id":0,"zones":[{"idzone":"2967008","here":{}},{"idzone":"2967010","here":{}},{"idzone":"2967010","here":{}},{"idzone":"3597795","sub":"70","here":{}}]}', - #'referer': 'https://18comic.org/', - "User_Agent": myran.agents() -} -# headers = {'User-Agent': UserAgent().random} + headers = {'User-Agent': UserAgent().random} url_data = {} @classmethod