From af73f5c22d401d8baf0490178671415fb44a790e Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 9 Jan 2023 21:45:24 +0800 Subject: [PATCH] fix --- utils/HtmlUtils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/HtmlUtils.py b/utils/HtmlUtils.py index cedb507..e211f3b 100644 --- a/utils/HtmlUtils.py +++ b/utils/HtmlUtils.py @@ -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)