Last answered:

20 Jul 2021

Posted on:

19 Jul 2021

0

Importing Beautifulsoup package

Dear Sir,
I kept on getting this error "

ImportError                               Traceback (most recent call last)
<ipython-input-3-14fb819e19d2> in <module>
      1 # Load the packages
      2 import requests
----> 3 from bs4 import beautifulSoup4

ImportError: cannot import name 'beautifulSoup4' from 'bs4' (C:\Users\adebo_000\anaconda3\envs\py3-TF2.0\lib\site-packages\bs4\__init__.py)" anytime I tried to import beautifulsoup or beautifulsoup4.



What can I do to fix this issue please?

1 answers ( 0 marked as helpful)
Instructor
Posted on:

20 Jul 2021

0

Hi,

The import name should be BeautifulSoup, not beautifulSoup. That should fix the problem.
from bs4 import BeautifulSoup

Best,
365 Team

Submit an answer