from selenium.webdriver import Chrome
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait as wait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import NoSuchElementException
from bs4 import BeautifulSoup
from time import sleep
from tqdm import tqdm
browser = Chrome('chromedriver')
browser.maximize_window()
url = 'https://www.wildberries.ru/catalog/0/search.aspx?search=castrol%20magnatec%205w40'
browser.get(url)
sleep(14)
goods = browser.find_element_by_class_name('product-card__brand-name').text.strip()
soup = BeautifulSoup(browser.page_source, 'lxml')
orgs = soup.findAll('div', class_='product-card__wrapper')
for org in orgs:
good = org.find('p', class_='product-card__brand-name').text.strip()
data.append([good])
data = []
for i in range(5):
result = i**2
data.append(result)
data = []
for i in range(5):
result = i**2
data.append(result)