title: How do I iterate over the HTML attributes of a Beautiful Soup element?
body: <p>How do I iterate over the HTML attributes of a Beautiful Soup element?</p>
  
  <p>Like, given:</p>
  
  <pre><code>&lt;foo bar="asdf" blah="123"&gt;xyz&lt;/foo&gt;
  </code></pre>
  
  <p>I want "bar" and "blah".</p>