Форум сайта python.su
from selenium import webdriver from bs4 import BeautifulSoup driver = webdriver.Chrome() driver.get('https://www.avito.ru/rossiya/vodnyy_transport/katera_i_yahty?p=1') soup = BeautifulSoup(driver.page_source, 'lxml') boxes = soup.find('div', class_='catalog-list js-catalog-list clearfix') for box in boxes: name = box.faind_all('a', class_='item-description-title-link').text print(name)
Офлайн