6

I downloaded BeautifulSoup.
Then I upgraded pip:

pip install --upgrade pip

Then, installed BS:

pip install beautifulsoup4

It seems like everything worked fine, but now when I run these three lines of code:

from BeautifulSoup import BeautifulSoup
import urllib2
import csv

I get this error.

Traceback (most recent call last):
File "C:\Users\rshuell001.spyder2\temp.py", line 1, in from BeautifulSoup import BeautifulSoup ImportError: No module named BeautifulSoup

I'm using Anaconda-Spyder

What am I doing wrong?

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
ASH
  • 18,040
  • 13
  • 61
  • 153

1 Answers1

17

I think it should be: from bs4 import BeautifulSoup.

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
Almog
  • 681
  • 4
  • 10