BeautifulSoup newbe... Need help
Here is the code sample...
from mechanize import Browser
from BeautifulSoup import BeautifulSoup
mec = Browser()
#url1 = "http://www.wines.com/catalog/index.php?cPath=21"
url2 = "http://www.wines.com/catalog/product_info.php?products_id=4866"
page = mec.open(url2)
html = page.read()
soup = BeautifulSoup(html)
print soup.prettify()
When I use url1 I get a nice dump of the page. When I use url2(the one I need). I get output without the body.
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>
2005 Jordan Cabernet Sauvignon Sonoma 2005
</title>
</head>
</html>
Any ideas?