1.

Solve : Google URLS?

Answer»

I'm trying to get a link to an I'm Feeling Lucky result (and hopefully do something with that later). I TRIED using
http://www.google.com/search?hl=en&q=QUERY&btnI=I%27m+Feeling+Lucky
This DOES do what I'm asking, however, when we change QUERY to QUERY2 it will display a regular search page. ALSO, I tried
http://www.google.com/search?hl=en&q=QUERY&btnI=745
but the problem persists.
examples that seem to work for me:

http://www.google.ca/#hl=en&q=free+possum&aq=f&btnI=1

http://www.google.ca/#hl=en&q=expensive+waffles&aq=f&btnI=1

http://www.google.ca/#hl=en&q=green+yogurt+city&aq=f&btnI=1

curiously these don't work if I use .com instead of .ca.Try adding a number in there.still works fine.

Quote from: Helpmeh on May 26, 2010, 04:15:15 PM

however, when we change QUERY to QUERY2 it will display a regular search page. Also, I tried
http://www.google.com/search?hl=en&q=QUERY&btnI=745
but the problem persists.
Obviously...the page searches for a certain string in the URL and if found, returns the im_feeling_unlucky() function. Quote from: kpac on May 28, 2010, 10:06:16 AM
Obviously...the page searches for a certain string in the URL and if found, returns the im_feeling_unlucky() function.
I know! But this doesn't: http://www.google.com/search?hl=en&q=QUERY2&btnI=745Oh okay, I see what you mean now.

http://www.google.com/search?hl=en&q=QUERY&btnI=I%27m+Feeling+Lucky - redirects, but
http://www.google.com/search?hl=en&q=QUERY2&btnI=I%27m+Feeling+Lucky - doesn't.

Is that it?

Well then it's simply because there isn't a single best match for "QUERY2" in the listings.http://www.google.ca/#hl=en&q=QUERY2&aq=f&btnI=1

works.

Okay, well the only other THING I can come up with is that it uses the most RELEVANT search result from that country's index.Ok...now...how to collect the URL that the link redirects to...Explain exactly what you're trying to do and how you're trying to do it.I'm just thinking...but it doesn't matter anyway...there are already enough bots which do this.


Discussion

No Comment Found