KeyHunter parser v10 + 18 scanners + tests (synthetic fixtures only, no keys/db/tokens)
This commit is contained in:
13
dbg_sc.py
Normal file
13
dbg_sc.py
Normal file
@@ -0,0 +1,13 @@
|
||||
import requests, re
|
||||
|
||||
H = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 Chrome/128"}
|
||||
r = requests.get("https://searchcode.com/search?q=DEEPSEEK_API_KEY",
|
||||
headers=H, timeout=20)
|
||||
print("search UI:", r.status_code, len(r.text))
|
||||
links = re.findall(r'href="(/search\?[^"]+)"', r.text)[:5]
|
||||
print("pager links:", links)
|
||||
# result rows: check structure
|
||||
m = re.findall(r'class="(search-result|result)[^"]*"', r.text)
|
||||
print("result classes:", len(m))
|
||||
# code snippet in page?
|
||||
print("has code:", "code" in r.text.lower(), "| DEEPSEEK mentions:", r.text.count("DEEPSEEK"))
|
||||
Reference in New Issue
Block a user