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)