Python Beautiful Soup Example
python
=
=
=
=
=
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 [TODO: Code shorthand span ] check doesn't work there. So, I'm just using [TODO: Code shorthand span ] all the time for consistency.