Skip to content
Advertisement

BeautifulSoup.select classname not working

I am trying to find tags by CSS class, using BeautifulSoup. Read documentation and tried different ways but the below code returns new_elem : []. Could you help me understand what I am doing wrong? Thanks.

JavaScript

Advertisement

Answer

As the url is dynamic,I use selenium with bs4 and getting the follwing output:

Code:

JavaScript

OUTPUT:

JavaScript
Advertisement