From abf3addba839a39222b5573a6358a3efcec65259 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Thu, 17 Sep 2020 01:22:47 -0700 Subject: [PATCH] Add acceptformat=crx2,crx3. Which still isn't working for some extensions but I will look into it later maybe. --- getcrx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getcrx.py b/getcrx.py index 7b3e858..f436453 100644 --- a/getcrx.py +++ b/getcrx.py @@ -14,7 +14,7 @@ from voussoirkit import getpermission FILENAME_BADCHARS = '\\/:*?<>|"' WEBSTORE_URL = 'https://chrome.google.com/webstore/detail/x/{extension_id}' -CRX_URL = 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=59.0&x=id%3D{extension_id}%26installsource%3Dondemand%26uc' +CRX_URL = 'https://clients2.google.com/service/update2/crx?response=redirect&prodversion=83.0.4103.116&acceptformat=crx2,crx3&x=id%3D{extension_id}%26uc' def sanitize_filename(name): for c in FILENAME_BADCHARS: