Xcode getting first link (i'm feeling lucky) into a variable
===

Inside a ViewController I would like to initiate a custom google search with some content passed on from a text box. 
I need to get the actual link(s) that google returns to me, not the google search page with all results. So I need to do an "automatic" click on the first link that google provides me so I can analyze the content of the page that I am redirected to. 
Can someone help me ?