Aug-06-2021, 10:02 AM
Thanks for chiming in ndc85430.
As a bit of a newbie, even after reading a lot of the documentation, I still sometimes forget what's what!
The only thing I used was something very similar to what Buran used in his example. And, as he proved with his example, the code should work- so there was something else wrong...and he was spot on.
I made an assumption after staring at the code for a long time that turned out wrong.
Thanks again for your pointers though.
As a bit of a newbie, even after reading a lot of the documentation, I still sometimes forget what's what!
The only thing I used was something very similar to what Buran used in his example. And, as he proved with his example, the code should work- so there was something else wrong...and he was spot on.
I made an assumption after staring at the code for a long time that turned out wrong.
Thanks again for your pointers though.
(Aug-05-2021, 09:33 AM)ndc85430 Wrote: Firstly, you're using the wrong terminology in several places. You're searching for tags (or elements) whose class
attribute has multiple values. Did you try CSS selectors, as described in the last example here (assuming you're using a recent version of Beautiful Soup). CSS selectors aren't a Beautiful Soup-specific thing, but the library supports them.