12 lines
419 B
Python
12 lines
419 B
Python
#!/usr/bin/env python3
|
|
import urllib.request
|
|
import ssl
|
|
|
|
ctx = ssl.create_default_context()
|
|
req = urllib.request.Request("https://exposedgays.com/", headers={"User-Agent": "Mozilla/5.0"})
|
|
with urllib.request.urlopen(req, timeout=15, context=ctx) as r:
|
|
body = r.read(2000).decode(errors="replace")
|
|
print("status:", r.status)
|
|
print("headers:", dict(r.headers))
|
|
print("body[:1500]:")
|
|
print(body[:1500]) |