title: Using BeautifulSoup to extract the title of a link
body: <p>I'm trying to extract the title of a link using BeautifulSoup. The code that I'm working with is as follows:</p>
  
  <pre><code>url = "http://www.example.com"
  source_code = requests.get(url)
  plain_text = source_code.text
  soup = BeautifulSoup(plain_text, "lxml")
  for link in soup.findAll('a', {'class': 'a-link-normal s-access-detail-page  a-text-normal'}):
      title = link.get('title')
      print title
  </code></pre>
  
  <p>Now, an example <code>link</code> element contains the following:</p>
  
  <pre><code>&lt;a class="a-link-normal s-access-detail-page a-text-normal" href="http://www.amazon.in/Introduction-Computation-Programming-Using-Python/dp/8120348664" title="Introduction To Computation And Programming Using Python"&gt;&lt;h2 class="a-size-medium a-color-null s-inline s-access-title a-text-normal"&gt;Introduction To Computation And Programming Using &lt;strong&gt;Python&lt;/strong&gt;&lt;/h2&gt;&lt;/a&gt;
  </code></pre>
  
  <p>However, nothing gets displayed after I run the above code. How can I extract the value stored inside the <code>title</code> attribute of the anchor tag stored in <code>link</code>? </p>