TheCaduceus / Link-Bypasser

Lets Bypass Adfly, GP LINKS, GDTOT Links, Sharer.pw, DropLink, AppDrive or DriveApp and LinkVertise Links within Seconds!🔥
223 stars 110 forks source link

GDTOT UPDATE #6

Closed professionalman closed 2 years ago

professionalman commented 2 years ago

def gdtot(url): client = cloudscraper.create_scraper(allow_brotli=False) match = re.findall(r'https?://(.+).gdtot.(.+)\/\S+\/\S+', url)[0] client.cookies.update({ "crypt": GDTot_Crypt }) res = client.get(url) res = client.get(f"https://{match[0]}.gdtot.{match[1]}/dld?id={url.split('/')[-1]}") url = re.findall(r'URL=(.*?)"', res.text)[0] info = {} info["error"] = False params = parse_qs(urlparse(url).query) if "gd" not in params or not params["gd"] or params["gd"][0] == "false": info["error"] = True if "msgx" in params: info["message"] = params["msgx"][0] else: info["message"] = "Invalid link" else: decoded_id = base64.b64decode(str(params["gd"][0])).decode("utf-8") drive_link = f"https://drive.google.com/open?id={decoded_id}" info["gdrive_link"] = drive_link if not info["error"]: return info["gdrive_link"] else: return "Could not generate GDrive URL for your GDTot Link :("

==========================================

res = gdtot(url)

print(res) print("Generated GDRive Link Successfully!")