Last answered:

25 Sept 2024

Posted on:

24 Sept 2024

0

Resolved: Doubt about custom function at parameter in .find()

When I apply a custom function to the find() function, there are attributes that allow it to work, as in the case of 'colspan,' while in other situations, such as 'class' or 'href,' I receive a KeyError. I am attaching images of both situations


Best regards and thanks in advance;)
1 answers ( 1 marked as helpful)
Posted on:

25 Sept 2024

0
its resolved , just use .get() to not stop code when attribute isn't in tag

Submit an answer