title: Beautiful Soup: Extract details from <p> tag
body: <p>My HTML page looks as follows:</p>
  
  <pre><code> data = &lt;section class="otln" itemscope="" itemtype="http://microformats.org/wiki/hCard"&gt;
   &lt;header&gt;
   &lt;h3 class="org"&gt;Website:&lt;/h3&gt;
   &lt;/header&gt;
   &lt;p&gt;&lt;a href="http://www.abilityone.gov"&gt;U.S. AbilityOne Commission &lt;/a&gt;&lt;/p&gt; &lt;/section&gt;,
   &lt;section class="otln" itemscope="" itemtype="http://microformats.org/wiki/hCard"&gt;
   &lt;header&gt;
   &lt;h3 itemprop="name"&gt;Main Address:&lt;/h3&gt;
   &lt;/header&gt;
   &lt;p class="spk street-address"&gt;1401 S. Clark Street&lt;br/&gt;Suite 715&lt;br/&gt;&lt;span class="locality"&gt;Arlington&lt;/span&gt;, &lt;span class="region"&gt;VA&lt;/span&gt; &lt;span class="postal-code"&gt;22202-3259&lt;/span&gt;&lt;/p&gt; &lt;/section&gt;,
   &lt;section class="otln" itemscope="" itemtype="http://microformats.org/wiki/hCard"&gt;
   &lt;header&gt;
   &lt;h3 itemprop="name"&gt;Phone Number:&lt;/h3&gt;
   &lt;/header&gt;
   &lt;p&gt;1-703-603-7740&lt;/p&gt; &lt;/section&gt;,
   &lt;section class="otln" itemscope="" itemtype="http://microformats.org/wiki/hCard"&gt;
   &lt;header&gt;
   &lt;h3 class="org"&gt;Government branch:&lt;/h3&gt;
   &lt;/header&gt;
   &lt;p&gt;Executive Department Sub-Office/Agency/Bureau&lt;/p&gt;
   &lt;/section&gt;
  </code></pre>
  
  <p>I want to extract all the details from the <code>&lt;p&gt;</code> tags of this HTML page like <code>href</code> of Website, Main Address, Phone Number and Government Branch. I have tried a lot of different variations to get them but not quite able to do it.</p>
  
  <p><strong>EDITED</strong></p>
  
  <p>My Code: </p>
  
  <pre><code>soup = BeautifulSoup(data,'lxml')
   website.append([l.find('a')['href'] for l in soup.find_all('section',class_='otln')])
  </code></pre>
  
  <p>The above attempt to get the 'href' throws <code>TypeError: 'NoneType' object is not subscriptable</code>
  I have the working solution to get Main address, Phone Number, and Government Branch. It would better if I could just get the 'href' of Website i.e. "<a href="http://www.ability.gov" rel="nofollow noreferrer">http://www.ability.gov</a>"</p>