Python Forum

Full Version: having a problem in importing module
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
import beautifulsoup

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    import beautifulsoup
ImportError: No module named beautifulsoup
I installed beautiful soup using pip successfully..
But when I try to import it, an error(Import error) appears..
Please help me to fix this.
you need to import bs4 and will use bs4.BeautifulSoup

or better directly
from bs4 import BeautifulSoup
and then just reference BeautifulSoup

here is the documentation https://www.crummy.com/software/BeautifulSoup/bs4/doc/