From c908b0502751fd3da8da6e374c4d765e47f7e4b9 Mon Sep 17 00:00:00 2001 From: Diffusion 123 <133562822+Diffusion123@users.noreply.github.com> Date: Thu, 18 Apr 2024 01:25:32 +0530 Subject: [PATCH] Fixed shareus.io/shrs.link --- FZBypass/core/bypass_ddl.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/FZBypass/core/bypass_ddl.py b/FZBypass/core/bypass_ddl.py index 031ddb1b..b95d17a7 100644 --- a/FZBypass/core/bypass_ddl.py +++ b/FZBypass/core/bypass_ddl.py @@ -288,6 +288,25 @@ async def shareus(url: str) -> str: except: raise DDLException("Link Extraction Failed") +async def shareus(url: str) -> str: + DOMAIN = f"https://api.shrslink.xyz" + code = url.split('/')[-1] + headers = { + 'User-Agent':'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Mobile Safari/537.36', + 'Origin':'https://shareus.io', + } + api = f"{DOMAIN}/v?shortid={code}&initial=true&referrer=" + id = rget(api, headers=headers).json()['sid'] + if id: + api_2 = f"{DOMAIN}/get_link?sid={id}" + res = rget(api_2, headers=headers) + if res: + final = res.json()['link_info']['destination'] + return final + else: + raise DDLException("Link Extraction Failed") + else: + raise DDLException( "ID Error") async def dropbox(url: str) -> str: return (