█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

invisible_playwright

एक Python लाइब्रेरी जो Playwright के sync और async API को बरकरार रखती है, लेकिन एक ऐसा Firefox लॉन्च करती है जिसे C++ स्तर पर patch किया गया है, और जिसमें seed से बना fingerprint और humanized माउस इनपुट है

Computer & Browser Useओपन सोर्स
ताज़ा
v0.35.7
अपडेट किया गया
13 अक्टू॰ 2026
भाषा
Python
लाइसेंस
MIT
$pip install invisible-playwright

नया क्या है

v0.35.713 अक्टू॰ 2026

Input events are now stamped a few milliseconds before the page sees them, as on real hardware, and the first enumerateDevices() call of a session takes a seed-fixed time on both Windows and Linux.

संक्षेप में

invisible_playwright क्या है?

invisible_playwright एक Python लाइब्रेरी जो Playwright के sync और async API को बरकरार रखती है, लेकिन एक ऐसा Firefox लॉन्च करती है जिसे C++ स्तर पर patch किया गया है, और जिसमें seed से बना fingerprint और humanized माउस इनपुट है. यह Agents & Automation टूल्स की Computer & Browser Use श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और MIT लाइसेंस के तहत है।

अपडेट किया गया Markdown वर्शन ↗

सारांश

invisible_playwright एक Python लाइब्रेरी है जो वेब स्क्रैपिंग और ब्राउज़र ऑटोमेशन के लिए बनी है। यह Playwright का API वैसा ही रखती है और उसके नीचे का ब्राउज़र बदल देती है। `p.firefox.launch()` लिखने के बजाय आप `InvisiblePlaywright()` को context manager के रूप में खोलते हैं, और बदले में आपको एक सामान्य `playwright.sync_api.Browser` (या उसका async समकक्ष) मिलता है — वही objects, calls और return values, इसलिए दो लाइन के बदलाव के बाद मौजूदा Playwright कोड जस का तस चलता है। यह जो ब्राउज़र लॉन्च करता है वह C++ सोर्स स्तर पर patch किया गया Firefox है, जिसे `python -m invisible_playwright fetch` से एक बार डाउनलोड किया जाता है और sha256 से verify किया जाता है।

Animated capture cycling through bot-detection test pages opened in invisible_playwright, each with a result banner; the frame shown is Google's reCAPTCHA v3 score test on CleanTalk reporting a score of 0.90 out of 1.0.
The project's own capture of its detection-test runs, which its README labels "5/5 detection suites passed".invisible_playwright README ↗

यह प्रोजेक्ट bot detection को दो सवालों में बाँटता है — क्या यह असली ब्राउज़र है, और क्या इसे कोई असली इंसान चला रहा है — और हर सवाल का जवाब अलग layer पर देता है। fingerprint (navigator, screen, GPU/WebGL, canvas, fonts, audio, WebRTC, timezone, network) इंजन के अंदर एक ही profile से सेट होता है, न कि page में inject करके, इसलिए कोई JavaScript shim नहीं होता जिसे page ढूँढ सके, और headless या headed, दोनों में दो अलग-अलग surfaces नहीं होते जो एक-दूसरे से मेल न खाएँ। driver इनपुट को humanize करता है: clicks, hovers और drags Bezier-curve माउस पाथ पर इंसानी timing के साथ चलते हैं, और इनपुट events असली input path से आते हैं, इसलिए page को trusted events दिखते हैं।

हर session को लगभग 200 fields वाला अलग fingerprint मिलता है, जब तक आप `seed` पास नहीं करते; seed हर run में वही GPU, canvas hash और audio context दोहराता है। अलग-अलग fields को pin किया जा सकता है, जबकि बाकी seed से ही तय होते रहते हैं। Proxies `socks5`, `socks4`, `http` और `https` स्वीकार करते हैं, DNS proxy के ज़रिए routed होता है, और timezone egress IP से निकाली जाती है, जब तक आप उसे खुद सेट न करें। कुछ Playwright surfaces जानबूझकर scope से बाहर रखे गए हैं — tracing, HAR, CDP और API request context — और हर एक चुपचाप गलत व्यवहार करने के बजाय समझाकर मना कर देता है। README में जो लोग script लिखने के बजाय prompt से काम लेना चाहते हैं, उनके लिए उसी engine पर बने MCP server और chat interface का ज़िक्र है।

wrapper पर MIT license है; patch किए गए Firefox binary को MPL-2.0 के तहत distribute किया जाता है, और उसे बनाने वाले C++ patches एक अलग repository feder-cr/firefox_antidetect_patch में प्रकाशित हैं। इसके लिए Python 3.11 या उससे नया चाहिए, और यह Windows x86_64 तथा Linux x86_64 / arm64 पर चलता है। repository में documentation का एक विस्तृत सेट भी है: bot detection कैसे काम करता है इस पर guides, नाम लेकर बताए गए anti-bot products के write-ups, और Camoufox, Patchright, nodriver तथा playwright-stealth से तुलना।

यह क्या करता है

  • Playwright का अपना sync और async API — लौटाया गया `browser` एक मानक Playwright `Browser` है, इसलिए `sync_playwright()` से स्विच करने में दो लाइन लगती हैं
  • C++ में patch किया गया Firefox engine: navigator, screen, WebGL, canvas, fonts, audio, WebRTC और timezone एक ही profile से ब्राउज़र के अंदर तय होते हैं, और page को दिखने वाला कोई JavaScript shim नहीं होता
  • driver में humanized इनपुट — Bezier-curve माउस पाथ इंसानी timing के साथ, और असली input path से आने वाले trusted events
  • दोहराए जा सकने वाले identities: `seed` पूरे fingerprint को तय करता है, और `pin` चुने हुए fields (GPU persona, screen size, hardware concurrency) को तय कर देता है, बाकी seed से ही बनते हैं
  • socks5, socks4, http और https के लिए proxy सपोर्ट, DNS proxy के ज़रिए, WebRTC candidate में proxy का exit, और egress IP से निकली timezone
  • एक छोटा CLI (`invisible-playwright fetch` / `version`) जो engine डाउनलोड करता है, cached copies को उनकी seal से जाँचता है, और wrapper, core तथा engine के versions बताता है

शुरू करें

PyPI से package इंस्टॉल करें, फिर patch किया गया Firefox एक बार डाउनलोड करें। डाउनलोड sha256 से verify होता है और Windows पर लगभग 240 MB है, Linux पर 253–262 MB (unpack होने पर लगभग 550 MB)। Python 3.11 या उससे नया ज़रूरी है।

लाइब्रेरी इंस्टॉल करें और engine डाउनलोड करें

bashbash
pip install invisible-playwright
python -m invisible_playwright fetch

मौजूदा Playwright script को स्विच करें

import और launch वाली लाइन बदलें; उसके बाद का सारा कोड बिना बदलाव वाला Playwright कोड ही रहता है।

diffdiff
- from playwright.sync_api import sync_playwright
- with sync_playwright() as p:
-     browser = p.firefox.launch()
+ from invisible_playwright import InvisiblePlaywright
+ with InvisiblePlaywright() as browser:

एक page चलाएँ (sync या async)

हर session को अपना fingerprint मिलता है, और clicks एक Bezier curve पर चलकर अपने target तक पहुँचते हैं। async version `invisible_playwright.async_api` से import करता है और उन्हीं calls को await करता है।

pythonpython
from invisible_playwright import InvisiblePlaywright

with InvisiblePlaywright(proxy={"server": "socks5://...", "username": "u", "password": "p"}) as browser:
    page = browser.new_page()
    page.goto("https://example.com")
    page.click("#submit")   # mouse arcs to the button on a Bezier curve

रन को दोहराने लायक बनाएँ

किसी random session का seed लॉग कर लें ताकि उसे दोबारा चलाया जा सके, या हर run में वही GPU, canvas hash और audio context पाने के लिए एक seed खुद पास करें। जब तक आप IANA zone का नाम नहीं देते, timezone egress IP के हिसाब से चलती है।

pythonpython
with InvisiblePlaywright(seed=42) as browser:
    ...   # same GPU, same canvas hash, same audio context, every run

with InvisiblePlaywright(proxy=proxy, timezone="America/New_York") as browser:
    ...

fingerprint के कुछ fields pin करें

GPU pin, मनमाना string सेट करने के बजाय, validated personas में से एक चुनता है; कोई अज्ञात renderer नाम दिया जाए तो error देता है और उपलब्ध नामों की सूची दिखाता है।

pythonpython
with InvisiblePlaywright(
    seed=42,
    pin={
        "gpu.renderer": "ANGLE (AMD, Radeon R9 200 Series Direct3D11 vs_5_0 ps_5_0, D3D11)",
        "gpu.vendor":   "Google Inc. (AMD)",
        "screen.width":  2560,
        "screen.height": 1440,
        "hardware.concurrency": 16,
    },
) as browser:
    ...

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • जब मौजूदा Playwright scraper या automation script बार-बार anti-bot challenges में अटके और आप अपना मौजूदा कोड बनाए रखना चाहें, तब इसे आज़माएँ
  • जब आपको runs के बीच एक स्थिर, दोहराने लायक browser identity चाहिए — वही seed, वही fingerprint — तब इसे आज़माएँ
  • जब traffic किसी proxy से जाता हो और ब्राउज़र की timezone, DNS और WebRTC address को exit से मेल खाना हो, तब इसे आज़माएँ
  • जब आप prompts के बजाय Python लिखना पसंद करते हों — वही engine एक अलग MCP server के ज़रिए agents को भी मिलता है — तब इसे आज़माएँ

How invisible_playwright compares

invisible_playwright alongside other open-source computer & browser use tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Browser Use★ 123kAI agents को असली ब्राउज़र नियंत्रित करने दें, ताकि वे सादी भाषा के निर्देशों से वेब काम पूरे कर सकें
Open Interpreter★ 69kप्राकृतिक भाषा के अनुरोधों से आपके अपने कंप्यूटर पर कोड चलाने वाला टर्मिनल कोडिंग एजेंट
Chrome DevTools MCP★ 60.2kएक MCP सर्वर, जो कोडिंग एजेंट को लाइव ब्राउज़र पर Chrome DevTools की पूरी ताकत देता है
agent-browser★ 55.1kएक नेटिव Rust CLI जो AI एजेंट को एक ब्राउज़र देता है, जिसे वह एक समय में एक shell कमांड से चला सकता है
UI-TARS Desktop★ 39.6kएक ओपन सोर्स GUI agent स्टैक, जो vision-language models की मदद से आपका कंप्यूटर और ब्राउज़र कंट्रोल करता है
CloakBrowser★ 35.3kPlaywright और Puppeteer के कोड में बिना कोई बदलाव किए चलने वाला stealth Chromium
Cua★ 33.8kएजेंट के लिए तैयार sandboxes, जिनसे AI किसी भी OS पर पूरे डेस्कटॉप को कंट्रोल कर सके
invisible_playwright★ 2.6kएक Python लाइब्रेरी जो Playwright के sync और async API को बरकरार रखती है, लेकिन एक ऐसा Firefox लॉन्च करती है जिसे C++ स्तर पर patch किया गया है, और जिसमें seed से बना fingerprint और humanized माउस इनपुट है