Fix web request encoding

This commit is contained in:
unknown
2021-11-23 00:20:15 +08:00
parent a8f39201b9
commit fc933615f0

View File

@@ -48,7 +48,7 @@ def get_html(url, cookies: dict = None, ua: str = None, return_type: str = None,
elif return_type == "content":
return result.content
else:
result.encoding = encoding or "utf-8"
result.encoding = result.apparent_encoding
return result.text
except requests.exceptions.ProxyError:
print("[-]Proxy error! Please check your Proxy")