title: How to get the url and the title from the <a> tags with beautifulSoup
body: <p>I'm coding a script to get all the links from the divs with a class="pntc-txt" and after I want to get from the <code>&lt;a&gt;</code> tags the href attribute and also the text between the <code>&lt;a href=""&gt;Something&lt;/a&gt;</code>. For after take that url and text and insert them in a database. I'll post the code that I've done so far:</p>
  
  <pre><code>import urllib.request
  from bs4 import *
  
  sock = urllib.request.urlopen("http://as.com/tag/moto_gp/a/") 
  htmlSource = sock.read()                            
  sock.close()                                        
  
  soup = BeautifulSoup(htmlSource)
  
  
  for div in soup.findAll('div', {'class': 'pntc-txt'}):
      a = div.findAll('a')
      print (a)
  </code></pre>