Aug-18-2020, 05:18 AM
I think you've misunderstood what you've been told.
As mlieqo suggests, you should check the criteria you're using to find the elements: are you using the right tag and class names?
find
will return some object and you'll need to use the text
attribute to, well, get the text from it. In your case, find
is returning None
as an element matching the criteria you specified (e.g. a "div" element with a class of "_3wU53n" could not be found. So, None
is going to be assigned to your variable and then when you try and access attributes or call methods on that, the same kind of problem will occur.As mlieqo suggests, you should check the criteria you're using to find the elements: are you using the right tag and class names?