From 3f3773014e9d9fe5fa907f168d2c35c8f393c7a0 Mon Sep 17 00:00:00 2001 From: HumanIearning Date: Sat, 6 Jul 2024 22:59:20 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EC=A1=B4=20=ED=99=98=EC=9C=A8=20api?= =?UTF-8?q?=EA=B0=80=20=EC=82=AC=EB=9D=BC=EC=A0=B8=EC=84=9C=20=EB=8B=A4?= =?UTF-8?q?=EB=A5=B8=EA=B3=B3=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=ED=95=B4=EC=A4=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../discord-bot/fee-bot/webhook-fitcloud-crawl-data.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/automation/discord-bot/fee-bot/webhook-fitcloud-crawl-data.py b/automation/discord-bot/fee-bot/webhook-fitcloud-crawl-data.py index dd6a679..bf4a1b0 100644 --- a/automation/discord-bot/fee-bot/webhook-fitcloud-crawl-data.py +++ b/automation/discord-bot/fee-bot/webhook-fitcloud-crawl-data.py @@ -59,9 +59,11 @@ discord_url = os.environ.get('discord_webhook_url') total_cost = sum([float(i[1][1:]) for i in source_cost_data]) -KRW_url = 'https://quotation-api-cdn.dunamu.com/v1/forex/recent?codes=FRX.KRWUSD' -exchange = requests.get(KRW_url, headers=user_agent).json() -exchange_rate = exchange[0]['basePrice'] + + +KRW_url = 'https://cdn.jsdelivr.net/npm/@fawazahmed0/currency-api@latest/v1/currencies/usd.json' +exchange = requests.get(KRW_url).json() +exchange_rate = exchange['usd']['krw'] Content = Embed( title='aws 요금',