Here is my python code:
import urllib2 from bs4 import BeautifulSoup page = urllib2.urlopen("http://www.amazon.com/") soup = BeautifulSoup(page) pr
You can try this:
import urllib2 from bs4 import BeautifulSoup page = urllib2.urlopen("http://www.amazon.com/") soup = BeautifulSoup(page) print soup
In python arbitrary text is called a string and it must be enclosed in quotes(" ").