diff --git a/Задания/task1/Uskova/parcing.py b/Задания/task1/Uskova/parcing.py new file mode 100644 index 0000000..17aeb52 --- /dev/null +++ b/Задания/task1/Uskova/parcing.py @@ -0,0 +1,14 @@ +from bs4 import BeautifulSoup +from selenium.webdriver import Chrome +from selenium import webdriver +from selenium.webdriver.chrome.service import Service +import time +s = Service('C:\\Users\\Yekaterina\\Downloads\\chromedriver_win32\\chromedriver.exe') +browser = webdriver.Chrome(service=s) +browser.get('https://www.citilink.ru/catalog/noutbuki/') +html_text = browser.page_source +soup = BeautifulSoup(html_text, 'lxml') +name=soup.find_all('div', class_='app-catalog-1tp0ino e1an64qs0') +print (name[0].text) +description=soup.find_all('div', class_='app-catalog-1o4umte eevw8x70') +print (description[0].text)