diff options
author | Alban Gruin | 2017-09-12 21:32:35 +0200 |
---|---|---|
committer | Alban Gruin | 2017-09-12 21:32:35 +0200 |
commit | c5d409e7c38cd5dd5686ce2311928587796349f9 (patch) | |
tree | c31c1a0180e12182fc7ad0062c69d1677670cfb1 | |
parent | 60ea5a0e2a5f61f7f764bcf01aafb362781c16da (diff) |
Lecture du contenu de la réponse avec r.content et non r.text pour limiter les problèmes
-rw-r--r-- | management/commands/_private.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/management/commands/_private.py b/management/commands/_private.py index 17896c4..2b57599 100644 --- a/management/commands/_private.py +++ b/management/commands/_private.py @@ -159,5 +159,5 @@ def get_xml(url): r = requests.get(url) r.encoding = "utf8" - soup = BeautifulSoup(r.text, "html.parser") + soup = BeautifulSoup(r.content, "html.parser") return soup |