Update twnic_rpz_1.0.py

This commit is contained in:
rootmelo92118 2023-07-29 22:50:26 +08:00 committed by GitHub
parent 4b6b7bc2ce
commit 07623225b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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("<script>")[1].split(";")[0].split("= ")[1])
twnic_rpz_1_0_raw = ""
twnic_rpz_1_0_AdGuardHome = ""
for i in rpzdata: