

InterviewSolution
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 however, when we change QUERY to QUERY2 it will display a regular search page. Also, I triedObviously...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. |
|