title: python search with image google images
body: <p>i'm having a very tough time searching google image search with python.  I need to do it using only standard python libraries (so urllib, urllib2, json, ..) </p>
  
  <p>Can somebody please help?  Assume the image is jpeg.jpg and is in same folder I'm running python from.</p>
  
  <p>I've tried a hundred different code versions, using headers, user-agent, base64 encoding, different urls (images.google.com, <a href="http://images.google.com/searchbyimage?hl=en&amp;biw=1060&amp;bih=766&amp;gbv=2&amp;site=search&amp;image_url=">http://images.google.com/searchbyimage?hl=en&amp;biw=1060&amp;bih=766&amp;gbv=2&amp;site=search&amp;image_url=</a>{{URL To your image}}&amp;sa=X&amp;ei=H6RaTtb5JcTeiALlmPi2CQ&amp;ved=0CDsQ9Q8, etc....)</p>
  
  <p>Nothing works, it's always an error, 404, 401 or broken pipe :(</p>
  
  <p>Please show me some python script that will actually seach google images with my own image as the search data ('jpeg.jpg' stored on my computer/device)</p>
  
  <p>Thank you for whomever can solve this,</p>
  
  <p>Dave:)</p>