From f8e93354a48ff8b3a75d7ff31bd1f4e5dc253852 Mon Sep 17 00:00:00 2001 From: simon987 Date: Fri, 14 May 2021 09:59:59 -0400 Subject: [PATCH] get_soup() decode utf8 --- hexlib/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hexlib/web.py b/hexlib/web.py index 1fa5b5c..73d0239 100644 --- a/hexlib/web.py +++ b/hexlib/web.py @@ -192,4 +192,4 @@ class Web: r = self.get(url, **kwargs) if not r: return None - return BeautifulSoup(r.content, "html.parser") + return BeautifulSoup(r.content.decode("utf-8"), "html.parser")