python - How do I iterate over the HTML attributes of a Beautiful Soup element? -


How do I recycle HTML properties of a beautiful soup element?

As such, given: / P>

  & lt; Foo bar = "asdf" blah = "123" & gt; Xyz & lt; / Foo & gt;  

I need "bar" and "blah". Beautiful suite from beautiful soup import page = beautiful soup ('& lt; foo bar = "asdf"


Comments