title: How to extract href contents in Python?
body: <p>I have HTML code as:
  "
          1.</p>
  
  <pre><code>&lt;a href="/title/tt0111161/?ref_=adv_li_tt"&gt;The Shawshank Redemption&lt;/a&gt;
  &lt;span class="lister-item-year text-muted unbold"&gt;(1994)&lt;/span&gt;
  </code></pre>
  
  <p>"</p>
  
  <p>How do I extract the  "The Shawshank Redemption" from 'a' tag using Beautiful soup?</p>