commit
9c5fef1a4d
412 files changed
+94582
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import re
|
||||
import requests
|
||||
|
||||
js = requests.get(
|
||||
"https://www.gongzicp.com/assets/index.eef719ce.js",
|
||||
headers={"User-Agent": "Mozilla/5.0"},
|
||||
timeout=90,
|
||||
).text
|
||||
for needle in ["webapi", "novel", "chapter", "search", "read"]:
|
||||
idx = 0
|
||||
found = 0
|
||||
while found < 15:
|
||||
i = js.find(needle, idx)
|
||||
if i < 0:
|
||||
break
|
||||
snippet = js[max(0, i - 40) : i + 80]
|
||||
print("---", needle, snippet.replace("\n", " "))
|
||||
idx = i + len(needle)
|
||||
found += 1
|
||||
Reference in new issue
Block a user