From 70abc378899f2cb3ea3b7dd043c6f5b2e2d3bf59 Mon Sep 17 00:00:00 2001 From: feller2021 <100558543+feller2021@users.noreply.github.com> Date: Wed, 22 Mar 2023 10:32:58 +0800 Subject: [PATCH] Create upup.py --- upup.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 upup.py diff --git a/upup.py b/upup.py new file mode 100644 index 0000000..bfc4861 --- /dev/null +++ b/upup.py @@ -0,0 +1,13 @@ +import re +import requests +def zhenurl(url): + r2=requests.get(url) + + + str22 = str(r2.text)#window.location.href + url = re.findall('downloadUrl = \'(.+?)\';', str22) + ddd=str(url) + d1=ddd.replace('[\'', '') + d2=d1.replace('\']', '') + print(d2) + return d2