import urllib2 import urllib from BeautifulSoup import BeautifulSoup # html from BeautifulSoup import BeautifulStoneSoup # xml import BeautifulSoup
@Blair's answer has the right slant but I'd perform some things slightly differently, i.e.:
import BeautifulSoup Soup = BeautifulSoup.BeautifulSoup
(recommended), or
import BeautifulSoup from BeautifulSoup import BeautifulSoup as Soup
(not bad either).