import sys import json import re from urllib.parse import urlparse
"url": "https://xnexx.hot", "final_url": "https://xnexx.hot/", "status_code": 200, "title": "XNEXX – Free Adult Videos", "meta_description": "Watch the latest adult videos on XNEXX...", "og_title": "XNEXX", "og_description": "Free adult video streaming", "keywords": "porn, xxx, free videos", "is_adult_content": true, "content_length_bytes": 84231
– The output can be used as the core of a browser extension, a monitoring dashboard, or a quick‑look “preview” feature that tells you whether a page is likely adult‑oriented, what its main title/description are, and whether it’s reachable at the moment.
def build_report(url: str) -> dict: try: resp = fetch_url(url) except requests.RequestException as exc: return "url": url, "error": f"Request failed: exc", "status_code": getattr(exc.response, "status_code", None),
def main(): if len(sys.argv) != 2: print("Usage: python quick_site_overview.py <URL>", file=sys.stderr) sys.exit(1)