I need to write a Python function that all it does is to take a link from Google's "I feel lucky" or Duckduckgo's "I'm feeling ducky" and return its redirection. for example, the function shuld take :
http://www.google.com/search?q="stackoverflow"&btnI
or
https://duckduckgo.com/?q=!stackoverflow
and return:
http://stackoverflow.com/
I searched and didn't found a thing. Thanks.
Well, you can use the requests package: