title: Open a page programmatically in python
body: <p>Can you extract the VIN number from this <a href="https://www.iaai.com/Vehicles/VehicleDetails.aspx?auctionID=14712591&amp;itemID=15775059&amp;RowNumber=0" rel="nofollow">webpage</a>?</p>
  
  <p>I tried <code>urllib2.build_opener</code>, requests, and mechanize. I provided user-agent as well, but none of them could see the VIN.</p>
  
  <pre><code>opener = urllib2.build_opener()
  opener.addheaders = [('User-agent',('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) ' 'AppleWebKit/535.1 (KHTML, like Gecko) ' 'Chrome/13.0.782.13 Safari/535.1'))]
  page = opener.open(link)
  soup = BeautifulSoup(page)
  
  table = soup.find('dd', attrs = {'class': 'tip_vehicleStats'})
  vin = table.contents[0]
  print vin
  </code></pre>