From 3ec15f0ba06313ffb9e74eb2e905d512b3b005b2 Mon Sep 17 00:00:00 2001 From: Purusharth Date: Tue, 17 Apr 2018 20:12:39 +0530 Subject: [PATCH 1/2] Fix bs4.FeatureNotFound error --- edx_dl/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_dl/parsing.py b/edx_dl/parsing.py index b49151ee..8c1b9410 100644 --- a/edx_dl/parsing.py +++ b/edx_dl/parsing.py @@ -15,7 +15,7 @@ # Force use of bs4 with html5lib -BeautifulSoup = lambda page: BeautifulSoup_(page, 'html5lib') +BeautifulSoup = lambda page: BeautifulSoup_(page, 'html.parser') def edx_json2srt(o): From b811848fb5c35241296555e3cba531535c103c30 Mon Sep 17 00:00:00 2001 From: Yuri Bochkarev Date: Sat, 9 Jun 2018 21:04:53 +0300 Subject: [PATCH 2/2] Update comment as well --- edx_dl/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_dl/parsing.py b/edx_dl/parsing.py index 8c1b9410..5a4afc3c 100644 --- a/edx_dl/parsing.py +++ b/edx_dl/parsing.py @@ -14,7 +14,7 @@ from .common import Course, Section, SubSection, Unit, Video -# Force use of bs4 with html5lib +# Force use of bs4 with html.parser BeautifulSoup = lambda page: BeautifulSoup_(page, 'html.parser')