mirror of
https://github.com/KUlishevgeniy/c22712.git
synced 2026-09-24 08:00:22 +00:00
parcing
This commit is contained in:
+3
-3
@@ -8,7 +8,7 @@ browser = webdriver.Chrome(service=s)
|
|||||||
browser.get('https://trial-sport.ru/gds.php?s=51516&c1=1070639&c2=1070640')
|
browser.get('https://trial-sport.ru/gds.php?s=51516&c1=1070639&c2=1070640')
|
||||||
html_text = browser.page_source
|
html_text = browser.page_source
|
||||||
soup = BeautifulSoup(html_text, 'lxml')
|
soup = BeautifulSoup(html_text, 'lxml')
|
||||||
bike_name=soup.find_all('a', class_='title')
|
product_name=soup.find_all('a', class_='title')
|
||||||
description=soup.find_all('span', class_='description')
|
description=soup.find_all('span', class_='description')
|
||||||
for bike_name, description in zip(bike_name, description):
|
for product_name, description in zip(product_name, description):
|
||||||
print(f"Продукт: {bike_name.text} \nОписание: {description.text}")
|
print(f"Продукт: {product_name.text} \nОписание: {description.text}")
|
||||||
Reference in New Issue
Block a user