PageElement has no __getitem__ dunder method

29 views
Skip to first unread message

Rohit Patil

unread,
Sep 8, 2021, 4:01:44 PM9/8/21
to beautifulsoup
when using .find_all() on an element an list or ResultSet of PageElement is returned.
when i try to access an attribute of an object at any index, i get the following linting error.
"__getitem__" method not defined on type "PageElement".
is this intended or should i be worried about something?

facelessuser

unread,
Sep 22, 2021, 1:15:36 PM9/22/21
to beautifulsoup
If you have a minimal, reproducible example, it may be easy for someone to analyze and answer. 
Reply all
Reply to author
Forward
0 new messages