Python Forum
Where There's A Space In An Object
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Where There's A Space In An Object
#5
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! Confused

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.
Reply


Messages In This Thread
Where There's A Space In An Object - by knight2000 - Aug-05-2021, 09:02 AM
RE: Where There's A Space In An Object - by buran - Aug-05-2021, 09:30 AM
RE: Where There's A Space In An Object - by knight2000 - Aug-06-2021, 10:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  from global space to local space Skaperen 4 2,361 Sep-08-2020, 04:59 PM
Last Post: Skaperen

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020