title: Beautiful Soup 'href' parse
body: <p>Let's suppose I want to parse the text in ALL hrefs in a page but my code doesn't seem to work. 
  There are some snippets of code like this in the html document I want to parse.</p>
  
  <pre><code>&lt;td class="alt1" id="ID" title="SOMETEXT"&gt;
                  &lt;div&gt;
                       &lt;a href="THETEXTIWANT.html" id="SOME IDENTIFIER"&gt;SOME TEXT.&lt;/a&gt;
                  &lt;/div&gt;
  &lt;/td&gt;
  </code></pre>
  
  <p>This is the code I am trying to run</p>
  
  <pre><code>from bs4 import BeautifulSoup,
      for td in parse.find_all(class_="alt1"):
          a = str(div.get())
          f.writelines(a + '\n')
  </code></pre>