From 3f18efbbe9b3408dcf504a81ae691e4bdd96991e Mon Sep 17 00:00:00 2001 From: pgy866 Date: Wed, 29 Jul 2026 18:11:13 +0800 Subject: [PATCH] =?UTF-8?q?JSFinder/JSFinder.py:172:=20=E5=BC=83=E7=94=A8?= =?UTF-8?q?=E8=AD=A6=E5=91=8A:=20=E8=B0=83=E7=94=A8=E4=BA=86=E5=B7=B2?= =?UTF-8?q?=E5=BC=83=E7=94=A8=E7=9A=84=E6=96=B9=E6=B3=95=20findAll?= =?UTF-8?q?=E3=80=82(=E5=B7=B2=E8=A2=AB=20find=5Fall=20=E6=9B=BF=E4=BB=A3)?= =?UTF-8?q?=20--=20=E8=87=AA=204.0.0=20=E7=89=88=E6=9C=AC=E8=B5=B7?= =?UTF-8?q?=E5=BC=83=E7=94=A8=E3=80=82=20html=5Fas=20=3D=20html.findAll("a?= =?UTF-8?q?")?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JSFinder/JSFinder.py:172: 弃用警告: 调用了已弃用的方法 findAll。(已被 find_all 替代) -- 自 4.0.0 版本起弃用。 html_as = html.findAll("a") --- JSFinder.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/JSFinder.py b/JSFinder.py index 385d3e3..bb8eb65 100644 --- a/JSFinder.py +++ b/JSFinder.py @@ -110,7 +110,7 @@ def find_by_url(url, js = False): return None #print(html_raw) html = BeautifulSoup(html_raw, "html.parser") - html_scripts = html.findAll("script") + html_scripts = html.find_all("script") script_array = {} script_temp = "" for html_script in html_scripts: @@ -169,7 +169,7 @@ def find_by_url_deep(url): print("Fail to access " + url) return None html = BeautifulSoup(html_raw, "html.parser") - html_as = html.findAll("a") + html_as = html.find_all("a") links = [] for html_a in html_as: src = html_a.get("href")