tbot added

This commit is contained in:
pErfEcto2
2023-04-10 21:23:27 +03:00
parent 13b1d87d79
commit 1b8e94b5f5
2 changed files with 50 additions and 2 deletions
@@ -1,6 +1,5 @@
from bs4 import BeautifulSoup
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from wget import download
import psycopg2 as psyc
@@ -27,5 +26,4 @@ with psyc.connect(dbname="db_for_parse", user="perfecto") as conn:
cursor.execute(f"""insert into images(link, name, price, description, file)
values ('{image}', '{title}', '{price}', '{desc}', 'images/{i}.jpg')""")
conn.commit()