From 5ec08874c56727ad6e971bfd1c805c9134827a21 Mon Sep 17 00:00:00 2001 From: Cooper <73203995+coopeeo@users.noreply.github.com> Date: Wed, 3 Apr 2024 17:22:17 -0500 Subject: [PATCH] Update DOWNLOAD_FILE.py --- .github/DOWNLOAD_FILE.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/DOWNLOAD_FILE.py b/.github/DOWNLOAD_FILE.py index 525a53a..9797dc5 100644 --- a/.github/DOWNLOAD_FILE.py +++ b/.github/DOWNLOAD_FILE.py @@ -32,9 +32,10 @@ def save(folderName): print(match) time.sleep(2) if match: + matchfound = match.group(1) + click_url = matchfound[(matchfound.find("(") + 1):-1] urllib.request.urlretrieve(click_url, 'test/' + 'yessir' + '.zip') folderName = "yessir" - matchfound = match.group(1) print(matchfound) save(folderName) else: