From 71f6298708056fc54badaeaa86d6a193955d07cb Mon Sep 17 00:00:00 2001 From: Abdussamet Kocak Date: Sun, 27 Feb 2022 15:51:22 +0300 Subject: [PATCH] fix: Add a temp proxy --- core/diyanet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/diyanet.py b/core/diyanet.py index 110f977..6ce1af8 100644 --- a/core/diyanet.py +++ b/core/diyanet.py @@ -1,6 +1,7 @@ import pprint from datetime import datetime from typing import List +from urllib.parse import quote import httpx from aiocache import cached, Cache @@ -37,7 +38,8 @@ async def parse_prayer_times(url: str) -> List[PrayerTimes]: def make_location_url(location_id: int) -> str: - return f'https://namazvakitleri.diyanet.gov.tr/en-US/{location_id}' + url = f'https://namazvakitleri.diyanet.gov.tr/en-US/{location_id}' + return f'https://proxy.abdusco.workers.dev?url={quote(url)}' async def get_prayer_times(location_id: int) -> List[PrayerTimes]: