Skip to main content

A lightweight and undetectable browser automation library utilizing pure CDP.

Project description

ShadowSurf

ShadowSurf adalah library otomatisasi browser berbasis Python yang sangat ringan (lightweight) dan tidak terdeteksi (undetectable). Didesain sebagai alternatif untuk Selenium dan Playwright yang sering diblokir oleh anti-bot modern (seperti Cloudflare, Datadome, reCAPTCHA).

Fitur Utama

  • No Bundled Binaries: Menggunakan Chrome yang sudah terinstal di perangkat Anda.
  • Native CDP (WebSockets): Koneksi langsung ke Chrome tanpa melalui ekstensi WebDriver.
  • No Automation Flags: Berjalan murni seperti pengguna biasa, tanpa pesan peringatan otomasi.
  • Pre-Document Stealth: Menyuntikkan manipulasi JS (stealth.js) sebelum website memuat untuk membypass deteksi navigator.webdriver dan proteksi lainnya.

Instalasi

Anda bisa menginstal library ini secara lokal dengan perintah:

pip install .

Contoh Penggunaan (YouTube Viewer)

import asyncio
from shadowsurf import launch

async def view_youtube():
    browser = await launch(headless=False)
    page = await browser.new_page()
    await page.goto("https://www.youtube.com/watch?v=LXb3EKWsInQ")
    await asyncio.sleep(30)
    await page.close()
    browser.close()

asyncio.run(view_youtube())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shadowsurf-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

shadowsurf-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file shadowsurf-0.1.0.tar.gz.

File metadata

  • Download URL: shadowsurf-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for shadowsurf-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b462886b9ab0aac43006866e5e25d7ada5311ce5517768087729c417a1ee9115
MD5 4e03ba10d5d309fad6d72885edfca740
BLAKE2b-256 351f52841e7e0f680822644e7d15e03beea2171063e0c87876169c099e4e36e4

See more details on using hashes here.

File details

Details for the file shadowsurf-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: shadowsurf-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for shadowsurf-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9358ba190c1b19143f5dbb7c36cedc9fb4a3fe24479012daa4ab53263558041c
MD5 8723aa34a3944e469a3099237a2ed02e
BLAKE2b-256 2df157314c31880a54f31aa009b11d1fd9a8ab534101b1a7a01c683eac8e48d2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page