from BeautifulSoup import BeautifulSoup import urllib2 req urllib2 Req

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
from BeautifulSoup import BeautifulSoup
import urllib2
req = urllib2.Request('http://www.ozon.ru/context/detail/id/4248146/')
response = urllib2.urlopen(req)
page = response.read().decode('cp1251')
soup = BeautifulSoup(page)
print soup.findAll('td')