StealthConfig (stealth/stealth.py)

easy-uploader · upgenius/utils/stealth/stealth.py · python · MIT
scraping

Playwright stealth configuration combining JS scripts to evade detection.

# Source: https://github.com/wanghaisheng/easy-uploader | License: MIT | Copyright 2021 wanghaisheng
# Provided via justclaw.it.com; keep this notice with the code.
# -*- coding: utf-8 -*-
import json
from dataclasses import dataclass
from typing import Tuple, Optional, Dict

from playwright.async_api import Page as AsyncPage

from .js.chrome_app import chrome_app
from .js.chrome_csi import chrome_csi
from .js.chrome_hairline import chrome_hairline
from .js.chrome_load_times import chrome_load_times
from .js.chrome_runtime import chrome_runtime
from .js.generate_magic_arrays import generate_magic_arrays
from .js.iframe_contentWindow import iframe_contentWindow
from .js.media_codecs import media_codecs
from .js.navigator_hardwareConcurrency import navigator_hardwareConcurrency
from .js.navi

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key