This commit is contained in:
itswait
2020-08-21 10:31:27 +08:00
parent 3a019a0430
commit 51ad58445e
5 changed files with 37 additions and 61 deletions

View File

@@ -59,6 +59,8 @@ def get_html(url, cookies: dict = None, ua: str = None, return_type: str = None)
if return_type == "object":
return result
elif return_type == "json":
return result.json()
else:
return result.text