mirror of
https://github.com/KUlishevgeniy/c22712.git
synced 2026-09-23 23:50:21 +00:00
Update DataBaze.py
This commit is contained in:
@@ -26,7 +26,7 @@ code = soup.find_all('div', class_= 'app-catalog-0 e1dsj6g20')
|
|||||||
price = soup.find_all('div', class_= 'app-catalog-0 e1dsj6g20')
|
price = soup.find_all('div', class_= 'app-catalog-0 e1dsj6g20')
|
||||||
picture = soup.find_all('div', class_='app-catalog-0 e1jarwcz0')
|
picture = soup.find_all('div', class_='app-catalog-0 e1jarwcz0')
|
||||||
|
|
||||||
for i in range(2):
|
for i in range(10):
|
||||||
url = picture[i].find('img').attrs['src']
|
url = picture[i].find('img').attrs['src']
|
||||||
file = f"C:\\Users\\Yekaterina\\Desktop\\baza\\pic{i}.JPG"
|
file = f"C:\\Users\\Yekaterina\\Desktop\\baza\\pic{i}.JPG"
|
||||||
wget.download(url, file)
|
wget.download(url, file)
|
||||||
@@ -36,4 +36,4 @@ for i in range(2):
|
|||||||
connection.commit()
|
connection.commit()
|
||||||
|
|
||||||
cursor.close()
|
cursor.close()
|
||||||
connection.close()
|
connection.close()
|
||||||
|
|||||||
Reference in New Issue
Block a user