{"id":22168758,"url":"https://github.com/tinyfish-io/tf-playwright-stealth","last_synced_at":"2025-05-16T12:11:28.979Z","repository":{"id":258322713,"uuid":"768474266","full_name":"tinyfish-io/tf-playwright-stealth","owner":"tinyfish-io","description":"A fork of https://github.com/AtuboDad/playwright_stealth","archived":false,"fork":false,"pushed_at":"2025-05-09T17:05:33.000Z","size":2830,"stargazers_count":90,"open_issues_count":4,"forks_count":13,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-09T17:49:03.542Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinyfish-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-03-07T06:35:57.000Z","updated_at":"2025-05-09T17:05:36.000Z","dependencies_parsed_at":"2025-02-12T20:10:44.730Z","dependency_job_id":"83ff1a39-165f-42f5-b674-5f1dcedad0e2","html_url":"https://github.com/tinyfish-io/tf-playwright-stealth","commit_stats":null,"previous_names":["tinyfish-io/tf-playwright-stealth"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyfish-io%2Ftf-playwright-stealth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyfish-io%2Ftf-playwright-stealth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyfish-io%2Ftf-playwright-stealth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinyfish-io%2Ftf-playwright-stealth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinyfish-io","download_url":"https://codeload.github.com/tinyfish-io/tf-playwright-stealth/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254527099,"owners_count":22085919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-02T06:26:43.877Z","updated_at":"2025-05-16T12:11:28.934Z","avatar_url":"https://github.com/tinyfish-io.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🥷🏻 tf-playwright-stealth [![PyPI version](https://img.shields.io/pypi/v/tf-playwright-stealth)](https://pypi.org/project/tf-playwright-stealth/) [![AgentQL](https://img.shields.io/badge/AgentQL-AgentQL-informational)](https://agentql.com) [![Join Discord](https://img.shields.io/badge/join-discord-infomational)](https://discord.gg/agentql)\n\n\n\n\u003e Transplanted from [puppeteer-extra-plugin-stealth](https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth).\n\nThis is a package that makes playwright stealthy like a ninja by spoofing browser features in order to reduce the chance of detection.\n\n## Install\n\n```\npip install tf-playwright-stealth\n```\n\n## Usage\n\n### sync\n```python\nfrom playwright.sync_api import sync_playwright\nfrom playwright_stealth import stealth_sync\n\nwith sync_playwright() as p:\n    browser = p.chromium.launch(\n            headless=True,\n        )\n    page = browser.new_page()\n    stealth_sync(page)\n    page.goto(\"https://bot.sannysoft.com/\")\n    page.screenshot(path=f\"example_with_stealth.png\", full_page=True)\n    browser.close()\n```\n\n\n### async\n\n```python\nfrom playwright.async_api import async_playwright\nfrom playwright_stealth import stealth_async\n\nwith async_playwright() as p:\n    browser = await p.chromium.launch(\n            headless=True,\n        )\n    page = await browser.new_page()\n    await stealth_async(page)\n    await page.goto(\"https://bot.sannysoft.com/\")\n    await page.screenshot(path=f\"example_with_stealth_async.png\", full_page=True)\n    await browser.close()\n```\n## Results\nFrom [bot.sannysoft.com](https://bot.sannysoft.com/)\n| Headless | Headful |\n|----------|---------|\n| ![Headless](./images/example_with_stealth_headless.png) | ![Headful](./images/example_with_stealth_headful.png) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyfish-io%2Ftf-playwright-stealth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyfish-io%2Ftf-playwright-stealth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyfish-io%2Ftf-playwright-stealth/lists"}