Preparing search index...

    Function detectAuthRequired

    • Detects if a page requires authentication by checking URL patterns and title keywords.

      Parameters

      • html: string

        The HTML content of the page

      • finalUrl: string

        The final URL after any redirects

      • originalUrl: string

        The original URL before redirects (used for host extraction)

      Returns ScraperErrorResult | null

      A ScraperErrorResult if auth is detected, null otherwise