Couldn't Find A Tree Builder With The Features You Requested: Html5lib ...
Có thể bạn quan tâm
Subject of the issue
I get the following error when trying to get list of courses bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?
Your environment
- Operating System: Ubuntu 14.04 LTS
- Python version: 2.7
- youtube-dl version: 2017.06.05
- edx-dl version: 0.1.4
Steps to reproduce
Error occures when I launch the command edx-dl -u a_atef45@yahoo.com --list-course
Expected behaviour
It should gives me list of courses
Actual behaviour
It gives the following
edx_dl version 0.1.4 Password: Building initial headers for future requests. Getting initial CSRF token. Found CSRF token. Logging into Open edX site: https://courses.edx.org/login_ajax Email or password is incorrect. ammar@ammar-HP-ProBook-4540s:~$ edx-dl -u a_atef45@yahoo.com --list-courses edx_dl version 0.1.4 Password: Building initial headers for future requests. Getting initial CSRF token. Found CSRF token. Logging into Open edX site: https://courses.edx.org/login_ajax Extracting course information from dashboard. Traceback (most recent call last): File "/usr/local/bin/edx-dl", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/edx_dl/edx_dl.py", line 1000, in main courses = get_courses_info(DASHBOARD, headers) File "/usr/local/lib/python2.7/dist-packages/edx_dl/edx_dl.py", line 142, in get_courses_info courses = page_extractor.extract_courses_from_html(page, BASE_URL) File "/usr/local/lib/python2.7/dist-packages/edx_dl/parsing.py", line 239, in extract_courses_from_html soup = BeautifulSoup(page) File "/usr/local/lib/python2.7/dist-packages/edx_dl/parsing.py", line 17, in <lambda> BeautifulSoup = lambda page: BeautifulSoup_(page, 'html5lib') File "/usr/local/lib/python2.7/dist-packages/bs4/__init__.py", line 165, in __init__ % ",".join(features)) bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?Thanks in advance for the help
(Edit by rbrito: Fix formatting of the exception to make it readable.)
Từ khóa » Html Parser. Do You Need To Install A Parser Library
-
Bs4.FeatureNotFound: Couldn't Find A Tree Builder With The Features ...
-
How To Install Parser Library Code Example
-
“bs4.FeatureNotFound: Couldn't Find A Tree Builder With The Features ...
-
Couldn't Find A Tree Builder With The Features You Requested: Lxml. Do ...
-
rser — Simple HTML And XHTML Parser — Python 3.10.6 ...
-
Do You Need To Install A Parser Library?解决办法 - CSDN博客
-
Python – Bs4.FeatureNotFound: Couldn't Find A Tree Builder With The ...
-
Bs4featurenotfound Couldn39t Find A Tree Builder With The ...
-
Couldn't Find A Tree Builder With The Features You Requested - Issues
-
Beautiful Soup Documentation — Beautiful Soup 4.4.0 Documentation
-
Bs4.FeatureNotFound: Couldn't Find A Tree Build...anycodings
-
How To Connect rser Library To Bs4, If... - Dev
-
Do You Need To Install A Parser Library? Two Solutions - Karatos