Couldn't Find A Tree Builder With The Features You Requested: Html5lib ...

Skip to content Dismiss alert {{ message }} / edx-dl Public
  • Notifications You must be signed in to change notification settings
  • Fork 635
  • Star 2k
  • Code
  • Issues 197
  • Pull requests 16
  • Actions
  • Projects
  • Security

    Uh oh!

    There was an error while loading. Please reload this page.

  • Insights
Additional navigation options bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library? #434New issueNew issueClosedClosedbs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?#434@ammaratef45

Description

@ammaratef45ammaratef45opened on Jun 20, 2017

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 [email protected] --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 [email protected] --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.)

Metadata

Metadata

Assignees

No one assigned

Labels

No labelsNo labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You can’t perform that action at this time.

Từ khóa » Html Parser. Do You Need To Install A Parser Library