From d8f30b5841b2f172401e89576de9f12c60a2d2f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andre=CC=81s=20Usa=CC=81n?= Date: Tue, 17 Nov 2015 13:13:26 +0100 Subject: [PATCH] BeautifulSoup is throwing a warning because of the parser --- opengraph/opengraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opengraph/opengraph.py b/opengraph/opengraph.py index fe7fec0..c88b059 100644 --- a/opengraph/opengraph.py +++ b/opengraph/opengraph.py @@ -42,7 +42,7 @@ def _fetch(self, url): return response.text def _parse(self, html): - doc = BeautifulSoup(html) + doc = BeautifulSoup(html, 'html.parser') ogs = doc.html.head.findAll(property=re.compile(r'^og')) for og in ogs: