INNER CODE UNIT · Python

set_count

KatrielMoses/voidaccess · voidaccess_cli/main.py:197

    set_count = sum(1 for v in keys.values() if v)
    table.add_row("Enrichment keys", f"{set_count}/{len(keys)} set")

    # Phase 1.6 (corrected per architect review) — show the clearnet-routing
    # state.  Per https://docs.scrapingant.com/proxy-mode §Introduction
    # ("the proxy transport is a light front-end for the scraping API") the two
    # transports are mutually exclusive alternates — there is no
    # combined "chained" state.  We delegate to the chokepoint's
    # transport selector so the display ALWAYS matches what
    # clearnet_fetch() will actually do.  Never reveals raw keys.
    #
    #   both off          → red    "disabled"           (direct — pre-1.6.2 behavior)
    #   proxy only        → cyan   "proxy transport"         (HTTP CONNECT through the configured ScrapingAnt proxy endpoint)
    #   api only          → green  "REST API"          (POST api.scrapingant.com/v2/general)
    #   both on (proxy wins) → magenta "proxy transport (api would be overridden)"
    proxy_username = cfg.get("enrichment_keys", {}).get("SCRAPINGANT_PROXY_USERNAME", "")
    proxy_password = cfg.get("enrichment_keys", {}).get("SCRAPINGANT_PROXY_PASSWORD", "")
    proxy_ready = bool(proxy_username and proxy_password)

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…