title: BeautifulSoup .get not returning 'href'
body: <p>I am working on creating a web-scraping tool that will download articles to txt files. I have created the soup with bs4 and pulled out the specific piece of html that contains the desired url for the article I want to download: </p>
  
  <pre><code>&gt;&gt;&gt;prevLink = soup2.select('.previous_post')
  &gt;&gt;&gt;prevLink
  [&lt;span class="previous_post"&gt;Previous Post: &lt;a href="http://www.mrmoneymustache.com/2018/11/08/honey-badger-entrepreneur/" rel="prev"&gt;An Interview With The Man Who Never Needed a Real Job&lt;/a&gt;&lt;/span&gt;]
  </code></pre>
  
  <p>So far so good (I think). Then I try to use .get('href') to pull out the link, but it returns 'none'.</p>
  
  <pre><code>&gt;&gt;&gt;print(prevLink[0].get('href'))
  None
  </code></pre>
  
  <p>When I use .get('class') to select for the class, however, it seems to work. </p>
  
  <pre><code>&gt;&gt;&gt; print(prevLink[0].get('class'))
  ['previous_post']
  </code></pre>
  
  <p>I don't understand why .get('class') is acting differently than .get('href'). 
  Thanks for looking. </p>