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

Jiawei Hu
Jiawei Hu
9,740 Points


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/", line 18, in <module>
    urls = internal_links('index.html')
  File "/Users/jiaweihu/Desktop/python IJ/web_scraping/", line 12, in internal_links
    soup = BeautifulSoup(html, 'html_parser')
  File "/Users/jiaweihu/.conda/envs/untitled/lib/python3.6/site-packages/bs4/", 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.