diff --git a/Python/TeleBot/__pycache__/FuncForBot.cpython-310.pyc b/Python/TeleBot/__pycache__/FuncForBot.cpython-310.pyc new file mode 100644 index 0000000..89a7912 Binary files /dev/null and b/Python/TeleBot/__pycache__/FuncForBot.cpython-310.pyc differ diff --git a/Python/TeleBot/__pycache__/config.cpython-310.pyc b/Python/TeleBot/__pycache__/config.cpython-310.pyc new file mode 100644 index 0000000..75f49ea Binary files /dev/null and b/Python/TeleBot/__pycache__/config.cpython-310.pyc differ diff --git a/Python/TeleBot/__pycache__/parser.cpython-310.pyc b/Python/TeleBot/__pycache__/parser.cpython-310.pyc new file mode 100644 index 0000000..8c09077 Binary files /dev/null and b/Python/TeleBot/__pycache__/parser.cpython-310.pyc differ diff --git a/Python/TeleBot/config.py b/Python/TeleBot/config.py index e9e6b3a..9c21df2 100644 --- a/Python/TeleBot/config.py +++ b/Python/TeleBot/config.py @@ -1,5 +1,5 @@ hostname = "localhost" -databname = "PythonDB" -username = "postgres" -passw = "Q1w2e3r4" +databname = "ada" +username = "ada" +passw = "Ri588856" api = "6285042955:AAEPprYo9K7Ta0RkDcoqO2Z4Ejdw8to1NX0" \ No newline at end of file diff --git a/Python/TeleBot/image/0.jpg b/Python/TeleBot/image/0.jpg new file mode 100644 index 0000000..49bd483 Binary files /dev/null and b/Python/TeleBot/image/0.jpg differ diff --git a/Python/TeleBot/image/1.jpg b/Python/TeleBot/image/1.jpg new file mode 100644 index 0000000..04e47ef Binary files /dev/null and b/Python/TeleBot/image/1.jpg differ diff --git a/Python/TeleBot/image/10.jpg b/Python/TeleBot/image/10.jpg new file mode 100644 index 0000000..697228c Binary files /dev/null and b/Python/TeleBot/image/10.jpg differ diff --git a/Python/TeleBot/image/11.jpg b/Python/TeleBot/image/11.jpg new file mode 100644 index 0000000..0eeeff9 Binary files /dev/null and b/Python/TeleBot/image/11.jpg differ diff --git a/Python/TeleBot/image/12.jpg b/Python/TeleBot/image/12.jpg new file mode 100644 index 0000000..46ff547 Binary files /dev/null and b/Python/TeleBot/image/12.jpg differ diff --git a/Python/TeleBot/image/13.jpg b/Python/TeleBot/image/13.jpg new file mode 100644 index 0000000..d79d495 Binary files /dev/null and b/Python/TeleBot/image/13.jpg differ diff --git a/Python/TeleBot/image/14.jpg b/Python/TeleBot/image/14.jpg new file mode 100644 index 0000000..7a38c3b Binary files /dev/null and b/Python/TeleBot/image/14.jpg differ diff --git a/Python/TeleBot/image/2.jpg b/Python/TeleBot/image/2.jpg new file mode 100644 index 0000000..c7aea3b Binary files /dev/null and b/Python/TeleBot/image/2.jpg differ diff --git a/Python/TeleBot/image/3.jpg b/Python/TeleBot/image/3.jpg new file mode 100644 index 0000000..083cde9 Binary files /dev/null and b/Python/TeleBot/image/3.jpg differ diff --git a/Python/TeleBot/image/4.jpg b/Python/TeleBot/image/4.jpg new file mode 100644 index 0000000..ceb59fe Binary files /dev/null and b/Python/TeleBot/image/4.jpg differ diff --git a/Python/TeleBot/image/5.jpg b/Python/TeleBot/image/5.jpg new file mode 100644 index 0000000..4c1bf3b Binary files /dev/null and b/Python/TeleBot/image/5.jpg differ diff --git a/Python/TeleBot/image/6.jpg b/Python/TeleBot/image/6.jpg new file mode 100644 index 0000000..9417469 Binary files /dev/null and b/Python/TeleBot/image/6.jpg differ diff --git a/Python/TeleBot/image/7.jpg b/Python/TeleBot/image/7.jpg new file mode 100644 index 0000000..bafbe29 Binary files /dev/null and b/Python/TeleBot/image/7.jpg differ diff --git a/Python/TeleBot/image/8.jpg b/Python/TeleBot/image/8.jpg new file mode 100644 index 0000000..0672188 Binary files /dev/null and b/Python/TeleBot/image/8.jpg differ diff --git a/Python/TeleBot/image/9.jpg b/Python/TeleBot/image/9.jpg new file mode 100644 index 0000000..a7c53ab Binary files /dev/null and b/Python/TeleBot/image/9.jpg differ diff --git a/Python/TeleBot/tableCreator.py b/Python/TeleBot/tableCreator.py index e7c4772..c31605c 100644 --- a/Python/TeleBot/tableCreator.py +++ b/Python/TeleBot/tableCreator.py @@ -21,7 +21,7 @@ for i in range(15): print(i) url = 'https://amwine.ru' + \ parser.pictures[i].find('a').find('img').attrs['data-src'] - filename = f"Python\\TeleBot\img\{i}.jpg" + filename = f"Python/TeleBot/image/{i}.jpg" wget.download(url, filename) try: ins_qwery = f"""insert into public.Parser(page_name, price, priceDis, mark, scr) values ('{parser.name[i].text}', '{parser.price[i].text}', '{parser.priceDis[i].text}', '{parser.mark[i].text}', '{filename}')"""