feat: new cockpit
This commit is contained in:
@@ -19,7 +19,7 @@ def _fetch_text(url: str, timeout: int = 15) -> str:
|
||||
import urllib.request
|
||||
import html
|
||||
req = urllib.request.Request(url, headers={
|
||||
"User-Agent": "Mozilla/5.0 (compatible; GeoOptions-Research/1.0)"
|
||||
"User-Agent": "Mozilla/5.0 (compatible; OpenFin-Research/1.0)"
|
||||
})
|
||||
with urllib.request.urlopen(req, timeout=timeout) as resp:
|
||||
raw = resp.read().decode("utf-8", errors="replace")
|
||||
|
||||
Reference in New Issue
Block a user