title: how to get correct url in google search using python
body: <p>I am trying to get the first URL in the google search. Like I search "tcs" on google and it is giving <a href="http://www.tcs.com/" rel="nofollow noreferrer">http://www.tcs.com/</a>. 
  Mostly result is correct but sometimes I am not getting the correct URL. I want a solution for this.
  try this on the google search:- "Euler Baubetr. u. Bauleitungsges. mbH"
  and result is coming :-<a href="https://www.firmenwissen.com/.../EULER_BAUBETREUUNG_UND_" rel="nofollow noreferrer">https://www.firmenwissen.com/.../EULER_BAUBETREUUNG_UND_</a> BAULEITUNGSGESELLSCHAFT_MBH.html</p>
  
  <p>in output URL in middle ...... is coming </p>
  
  <p>and the desired output is:- <a href="https://www.firmenwissen.com/en/az/firmeneintrag/63654/6110225969/EULER_BAUBETREUUNG_UND_BAULEITUNGSGESELLSCHAFT_MBH.html" rel="nofollow noreferrer">https://www.firmenwissen.com/en/az/firmeneintrag/63654/6110225969/EULER_BAUBETREUUNG_UND_BAULEITUNGSGESELLSCHAFT_MBH.html</a></p>
  
  <h2>Code:-</h2>
  
  <pre><code>   import requests
  
     from bs4 import BeautifulSoup as bs
  
     var="Euler Baubetr. u. Bauleitungsges. mbH"
  
     goog_search = "https://www.google.co.uk/search?sclient=psyab&amp;client=ubuntu&amp;hs=k5b&amp;channel=fs&amp;biw=1366&amp;bih=648&amp;noj=1&amp;q=" + var
  
  
     r = requests.get(goog_search)
  
     soup = bs(r.text, "html.parser")
  
     url=soup.find('cite').text
  
     print(url)
  </code></pre>