mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-28 19:23:11 +01:00
appcenter wth
This commit is contained in:
parent
bea23de1bb
commit
fd45e9d735
1 changed files with 4 additions and 1 deletions
|
@ -99,9 +99,12 @@ async def download_file(url: str, path: str, session: aiohttp.ClientSession):
|
|||
async def get_download_link_of_latest_appcenter_release(parameterized_url: str, session: aiohttp.ClientSession):
|
||||
api_base = 'https://install.appcenter.ms/api/v0.1'
|
||||
base_url = f'{api_base}/{parameterized_url}'
|
||||
headers = {
|
||||
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/118.0',
|
||||
}
|
||||
|
||||
async def make_req(url):
|
||||
async with session.get(url) as response:
|
||||
async with session.get(url, headers=headers) as response:
|
||||
if response.status != 200:
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue