title: Python Google Search
body: <p>I try to search for a word in google with python. Then I try to extract it into a list and print the list. But now I've got this problem:</p>
  
  <pre><code>class search:
      def __init__(self, search):
          page = requests.get("http://www.google.de/search?q="+search)
          soup = BeautifulSoup(page.content)
          links = soup.findAll("a")
          for link in  soup.find_all("a",href=re.compile("(?&lt;=/url\?q=)(htt.*://.*)")):
              print re.split(":(?=http)",link["href"].replace("/url?q=",""))
  
  search("lol")
  </code></pre>
  
  <p>This works. But look at the output:</p>
  
  <pre><code>['http://euw.leagueoflegends.com/de&amp;sa=U&amp;ved=0ahUKEwie3sWOkbHRAhVGGCwKHSChAWQQFggVMAA&amp;usg=AFQjCNEkd1xB6jaSnzWz-VpYcnHvSNYMJA']
  
  ['http://webcache.googleusercontent.com/search%3Fq%3Dcache:as12jwqcnbAJ', 'http://euw.leagueoflegends.com/de%252Blol%26hl%3Dde%26ct%3Dclnk&amp;sa=U&amp;ved=0ahUKEwie3sWOkbHRAhVGGCwKHSCqewsfdvfgh1A&amp;usg=AFQjCNEm132qewdasDq2hCb9SRjnbmbMb3rkw']
  </code></pre>
  
  <p>(and so on)</p>
  
  <p>How do I put this into a list!? And how can I remove this webcache thing?</p>
  
  <p>I know that it's utf8 encoded but I can simply decode it with urllib2.</p>
  
  <p>Thank you in advance!</p>