mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-10-18 09:38:11 +00:00
Fix PSL download
This commit is contained in:
1 parent
2796fdd691
commit
9cf113abdc
1 file changed
+1
-1
@@ -110,7 +110,7 @@ def _get_base_domain(domain):
|
|||||||
__version__
|
__version__
|
||||||
)
|
)
|
||||||
headers = {"User-Agent": user_agent}
|
headers = {"User-Agent": user_agent}
|
||||||
fresh_psl = requests.get(url, headers=headers).content
|
fresh_psl = requests.get(url, headers=headers).text
|
||||||
with open(psl_path, "w", encoding="utf-8") as fresh_psl_file:
|
with open(psl_path, "w", encoding="utf-8") as fresh_psl_file:
|
||||||
fresh_psl_file.write(fresh_psl)
|
fresh_psl_file.write(fresh_psl)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user