title: selecting html by id using BeautifulSoup
body: <p>I'm trying to select a section of html from a webpage</p>
  
  <p>I use the code:</p>
  
  <pre><code>import urllib.request, urllib.parse, urllib.error
  from lxml import html
  from bs4 import BeautifulSoup
  
  html = urllib.request.urlopen("http://archiveofourown.org/works/1758087?view_full_work=true").read()
  soup = BeautifulSoup(html, 'lxml')
  
  for tag in soup.find_all(id="children"):
      print(tag.get('href'))
  </code></pre>
  
  <p>to get this:</p>
  
  <pre><code>&lt;div id="children" class="children module"&gt;
    &lt;h3 class="heading"&gt;Works inspired by this one:&lt;/h3&gt;
    &lt;ul&gt;
      &lt;li&gt;
          &lt;a href="/works/2219289"&gt;not an origin story&lt;/a&gt; by &lt;a rel="author" href="/users/eiirene/pseuds/eiirene"&gt;eiirene&lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and then extract the number (2219289) and name (eiirene).</p>
  
  <p>When I run the same code on url = "<a href="http://archiveofourown.org/works/225563?view_full_work=true" rel="nofollow noreferrer">http://archiveofourown.org/works/225563?view_full_work=true</a>" to try to select this:</p>
  
  <pre><code>&lt;div id="children" class="children module"&gt;
    &lt;h3 class="heading"&gt;Works inspired by this one:&lt;/h3&gt;
    &lt;ul&gt;
      &lt;li&gt;
          &lt;a href="/works/240745"&gt;Cover-  Performance in A Leading Role by mad_lori&lt;/a&gt; by &lt;a rel="author" href="/users/blanketforyourshock/pseuds/blanketforyourshock"&gt;blanketforyourshock&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a href="/works/341326"&gt;Movie still: To A Stranger&lt;/a&gt; by &lt;a rel="author" href="/users/RedOrchid/pseuds/RedOrchid"&gt;RedOrchid&lt;/a&gt;
      &lt;/li&gt;
      &lt;li&gt;
          &lt;a href="/works/787850"&gt;Future Yesterday&lt;/a&gt; by &lt;a rel="author" href="/users/ladymac111/pseuds/ladymac111"&gt;ladymac111&lt;/a&gt;
      &lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>It returns 'None'. If I use find_all it returns an empty list [].</p>
  
  <p>Any ideas?</p>