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