From 79aa5bab48f47e6871c25110de5d776a139eb0da Mon Sep 17 00:00:00 2001 From: ParkSuMin Date: Tue, 7 Jan 2025 15:43:47 +0000 Subject: [PATCH] Prepare for parser's part --- parser/main.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 parser/main.py diff --git a/parser/main.py b/parser/main.py new file mode 100644 index 00000000..0892ad4f --- /dev/null +++ b/parser/main.py @@ -0,0 +1,17 @@ +from currency import Currency +import requests +from bs4 import BeautifulSoup + +url = "https://irose-shop.net/?category_id=52b1abaf8a56103f0500013e" + +response = requests.get(url) +response.raise_for_status() + +soup = BeautifulSoup(response.text, "html.parser") + +products = soup.find_all("div", class_="c-itemList__item") +print(products) +# bank = Currency("JPY") +# price = 19160 + +# print(f"Price in Russian Rubles: {price * ((bank.yen_rate/bank.yen_nominal))}") \ No newline at end of file