This commit is contained in:
caiwx86 2023-01-09 21:45:24 +08:00
parent c3d1e96c46
commit af73f5c22d

View File

@ -75,8 +75,8 @@ class htmlUtils:
url_text = res
if type == "json":
#url_text = res.json()
url_text = json.loads(res.text)
cls.saveHtml(curl,res.text)
return json.loads(res.text)
if type == None:
url_text = html.fromstring(res.text)
cls.saveHtml(curl,res.text)