Skip to content
Advertisement

Extracting class inside a div returns None in Python Beautifulsoup

The snippet below does not really display the intended data as it returns None. Any idea and inputs as how to do it properly will be very helpful.

JavaScript

Current Output:

JavaScript

Wanted Output:

JavaScript

Advertisement

Answer

I hope this helps:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement