fix
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user