fix: Add a temp proxy
This commit is contained in:
+3
-1
@@ -1,6 +1,7 @@
|
|||||||
import pprint
|
import pprint
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import List
|
from typing import List
|
||||||
|
from urllib.parse import quote
|
||||||
|
|
||||||
import httpx
|
import httpx
|
||||||
from aiocache import cached, Cache
|
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:
|
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]:
|
async def get_prayer_times(location_id: int) -> List[PrayerTimes]:
|
||||||
|
|||||||
Reference in New Issue
Block a user