From 07623225b4223d5aab9b24bda32d6fd4e8cd18a8 Mon Sep 17 00:00:00 2001 From: rootmelo92118 <32770959+rootmelo92118@users.noreply.github.com> Date: Sat, 29 Jul 2023 22:50:26 +0800 Subject: [PATCH] Update twnic_rpz_1.0.py --- AutoBuild/twnic_rpz_1.0.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AutoBuild/twnic_rpz_1.0.py b/AutoBuild/twnic_rpz_1.0.py index 91876b0..1fdd498 100644 --- a/AutoBuild/twnic_rpz_1.0.py +++ b/AutoBuild/twnic_rpz_1.0.py @@ -1,8 +1,8 @@ import requests, json from bs4 import BeautifulSoup -soup = BeautifulSoup(requests.get("https://rpz.twnic.tw/e.html").text, "html.parser") -exec(str(soup.find("script")).split(";")[0].split("const ")[1]) +rawData = BeautifulSoup(requests.get("https://rpz.twnic.tw/e.html").text, "html.parser") +rpzdata = json.loads(a.split("