title: Getting the 'real' Google results with Python
body: <p>I'm trying to do something very simple, get the top result URL of a Google search, f.e. for the search <code>LMFAO Yes at Pandora</code> (<code>at</code> is intentional here) I want to receive the link <code>www.pandora.com/music/song/lmfao/yes</code>. All 3 of the major search engines  return this result without any troubles.</p>
  
  <p>The standard response on stackoverflow seems to be to use the <code>Google AJAX API</code> but ... to be blunt, it's total crap. <a href="http://ajax.googleapis.com/ajax/services/search/web?v=1.0&amp;q=LMFAO+Yes+at+Pandora" rel="nofollow noreferrer">It returns</a> completely weird results i.e.  </p>
  
  <blockquote>
    <p><code>http://lyrics.wikia.com/LMFAO:Yes</code><br>
    <code>http://www.pandora.com/music/artist/lmfao</code><br>
    <code>http://www.pandora.com/music/song/goo%2Bgoo%2Bdolls/black%2Bballoon</code><br>
    <code>http://new.music.yahoo.com/lmfao/</code>  </p>
  </blockquote>
  
  <p>Unfortunately no amount of tinkering with the query has brought me any success and it gets even worse for more obscure searches, like <code>Andrea Bauer at ilike</code></p>
  
  <p>Bing and Yahoo also provide API's but they require one to get a Dev ID, i.e. no program distribution..</p>
  
  <p>I've also found <a href="https://stackoverflow.com/questions/3898574/google-search-using-python-script/3899210#3899210">this</a> suggestion that parses the standard Google page but it doesn't seem to work anymore.</p>
  
  <p>The source code of the Google return page in my web browser looks un-searcheable to me..</p>
  
  <p>Is there anything I can do to get the 'real' Google results?</p>