I am trying to use BeautifulSoup, and despite using the import statement:
from bs4 import BeautifulSoup
I am getting the error: ImportError: cannot import name BeautifulSoup
import bs4
does not give any errors.
I have also tried import bs4.BeautifulSoup
and just importing bs4 and creating a BeautifulSoup object with: bs4.BeautifulSoup()
Any guidance would be appreciated.
import BeautifulSoup
work? – bosnjak Apr 27 '15 at 23:02from BeautifulSoup import BeautifulSoup
. Also, check if you have really installed it – rafaelc Apr 27 '15 at 23:17import bs4
works, what doesdir(bs4)
print? This will be a list of all the components (functions, classes, submodules, etc.) inbs4
. – dimo414 Apr 28 '15 at 0:21