Hello everyone, thanks in advance for help. The site has two divas on the same level.

<div class='results-holder results-all'>

<div class='results-holder'>

Information is needed only from the second, I use bs4

 table = soup.find('div', class_='results-holder') 

Accordingly, the first div displays, is it possible to specify a search strictly for a given class name?

  • find_all(...)[1] ? - andreymal
  • I would not want to use the index, as sometimes the first div can be missing, so I wanted to find this element by class. - santos_q
  • After all, you can delete the div and nested tags? - santos_q

0