title: Beautifulsoup navigating divs by attribute without findAll
body: <p>How do I find a specific div by calling the attributes of a soup? i.e. something like <code>soup.html.body.div</code> however I don't see how to get the specific div with <code>id='idname'</code> here?</p>
  
  <p>I can do <code>soup.findAll(id='idname')[0]</code> to get the specific tag, but as I understand it this is searching the whole soup.</p>
  
  <p>I imagine getting the div by attribute on the soup would be faster since you are not using <code>findAll()</code>?</p>
  
  <p>Firebug reports the location as being <code>html.body.div[2].form.table[2].tbody.tr[3]...</code> however doing <code>soup.html.body.div[2]</code> gives a key error.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>Say you want to grab the <strong>I'm feeling lucky</strong> button from <a href="http://www.google.com" rel="nofollow">http://www.google.com</a>, firebug reports that as being:</p>
  
  <p><code>/html/body/center/span/center/div[2]/form/div[2]/div[3]/center/input[2]</code></p>
  
  <p>Is there a way to reach this <em>without</em> using <code>findAll</code>?</p>