Site: https://www.nieruchomosci-online.pl/szukaj.html?3,mieszkanie,wynajem,,Szczecin:19503
I want to parse all advertisements,except of featured ones.The problem is there are different classes for almost every ad and i cannot gather them to one list. Featured ads can be on 2 or even 3 pages. The featured ads are marked on the top of the site, but usual ones don’t. In addition, on the last pages there are archived ads.
ogloszenia = soup.find_all(class_=’column-container column_default’) I wanted just to gather the container, but featured and archived ones have also such containers. I also can’t just find the ‘Lista ogłoszeń’ and then find_sibling. Cause on next page there is not such a fieldLista ogloszen, next page without such field.
Andrey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.