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.webdriverdan 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file shadowsurf-0.1.1.tar.gz.
File metadata
- Download URL: shadowsurf-0.1.1.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c46cb8e7472650425415dc6a99b9cff868a4a891bd557c9ee23322c19fae1c46
|
|
| MD5 |
b9e9eff49572b335d577a662ab0bebe5
|
|
| BLAKE2b-256 |
1b7e2ae69b053c4957e7462b914e6245d48e6bb476e5d7738c778ad12a27e03e
|
File details
Details for the file shadowsurf-0.1.1-py3-none-any.whl.
File metadata
- Download URL: shadowsurf-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66008a73848db6b43a5f2743a6879663ed62fed52ed38b6010fee4c0268a0557
|
|
| MD5 |
67ef165da26c36feb8c11addba755a7f
|
|
| BLAKE2b-256 |
f09a478c6f2fe4c6fce4755f5729965089df840dbae229b55c659079e8e26232
|