Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Scraping Data From the Web A World Full of Spiders Everyone Loves Charlotte

Jiawei Hu
Jiawei Hu
9,740 Points

bs4.FreatureNotFound

I'm using IntelliJ for this course and by running the exact same codes I got the following errors:

Traceback (most recent call last):

  File "/Users/jiaweihu/Desktop/python IJ/web_scraping/soup_follow_scraper.py", line 18, in <module>
    urls = internal_links('index.html')
  File "/Users/jiaweihu/Desktop/python IJ/web_scraping/soup_follow_scraper.py", line 12, in internal_links
    soup = BeautifulSoup(html, 'html_parser')
  File "/Users/jiaweihu/.conda/envs/untitled/lib/python3.6/site-packages/bs4/__init__.py", line 196, in __init__
    % ",".join(features))
bs4.FeatureNotFound: Couldn't find a tree builder with the features you requested: html_parser. Do you need to install a parser library?

Can anyone give me a hand on this?

1 Answer

This from stackoverflow may help. One of the suggestions is to use:

soup = BeautifulSoup(html, 'html.parser')

This is the same code as in the video @ 3:37

Jiawei Hu
Jiawei Hu
9,740 Points

Thanks, I just realize that.