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

Jiawei Hu
Jiawei Hu
8,000 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

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 44,827 Points

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
8,000 Points

Thanks, I just realize that.