diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index de61904..58a49ff 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,10 @@
-
+
+
+
+
@@ -22,7 +25,6 @@
-
@@ -33,6 +35,11 @@
+
+
+
+
+
@@ -102,7 +109,21 @@
1676934066947
-
+
+ 1677183215124
+
+
+
+ 1677183215124
+
+
+ 1677183242833
+
+
+
+ 1677183242833
+
+
@@ -118,11 +139,14 @@
+
-
+
+
+
diff --git a/Задания/task1/Kluchinskaya1/parsing_in_bd.py b/Задания/task1/Kluchinskaya1/parsing_in_bd.py
new file mode 100644
index 0000000..c6310bb
--- /dev/null
+++ b/Задания/task1/Kluchinskaya1/parsing_in_bd.py
@@ -0,0 +1,26 @@
+from bs4 import BeautifulSoup
+from selenium import webdriver
+from selenium.webdriver.chrome.service import Service
+from wget import download
+import psycopg2
+connection = psycopg2.connect(host='localhost', dbname='dbdata',
+ user='postgres', password='Q1w2e3r4')
+cursor=connection.cursor()
+s = Service('C:\\Users\\Dasha\\Desktop\\Progect\\chromedriver.exe')
+browser = webdriver.Chrome(service=s)
+url = 'https://www.tretyakovgallery.ru/'
+browser.get(url)
+html_text=browser.page_source
+soup = BeautifulSoup(html_text, 'lxml')
+products = soup.find_all(attrs={"class": "building-item"})
+for i, product in enumerate(products):
+ link = product.find("img").attrs.get("src")
+ tag = product.find("strong")
+ if tag is not None:
+ download(url + link, f"img\\{i}.jpg")
+ cursor.execute(f"""INSERT INTO public.parsing(name, link)
+ VALUES
+ ( '{tag.text}', '{url + link}')""")
+connection.commit()
+cursor.close()
+connection.close()
\ No newline at end of file