Python Beautiful Soup Example
=
=
=
=
=
Output:
color: #123434
NOTE: The docs say you can use this:
style = div.attrs['style']
instead of this:
style = div['style']
but that doesn't work consistently for me.
I think that was because I was trying to do:
#+begin_example if 'thing' in element: print('here') #+end_example
and the in
check doesn't work there. So, I'm just using .attrs
all the time for consistency.
-- end of line --