undetected-playwright


Nameundetected-playwright JSON
Version 0.2.0 PyPI version JSON
download
home_pagehttps://github.com/QIN2DIM/undetected-playwright
SummaryYou know who I am
upload_time2023-08-24 12:42:26
maintainer
docs_urlNone
authorQIN2DIM
requires_python>=3.8,<4.0
licenseApache-2.0
keywords undetected playwright steath
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # undetected-playwright

## Usage

1. **Download PyPi package**

   ```bash
   pip install -U undetected-playwright
   ```

2. **Run the demo**

   As before.

   ```python
   from playwright.sync_api import BrowserContext, sync_playwright
   
   from undetected_playwright import stealth_sync
   
   headless = True
   
   
   def run(context: BrowserContext):
       page = context.new_page()
       page.goto("https://bot.sannysoft.com/")
   
       _suffix = "-headless" if headless else "-headful"
       page.screenshot(path=f"result/sannysoft{_suffix}.png", full_page=True)
   
   
   def bytedance():
       with sync_playwright() as p:
           browser = p.chromium.launch(headless=headless)
           context = browser.new_context()
           stealth_sync(context)
           run(context)
   
   
   if __name__ == "__main__":
       bytedance()
   ```

   

## Reference

- [berstend/puppeteer-extra](https://github.com/berstend/puppeteer-extra)

- [AtuboDad/playwright_stealth: playwright stealth (github.com)](https://github.com/AtuboDad/playwright_stealth)
- [Granitosaurus/playwright-stealth (github.com)](https://github.com/Granitosaurus/playwright-stealth)

- [diprajpatra/selenium-stealth: Trying to make python selenium more stealthy. (github.com)](https://github.com/diprajpatra/selenium-stealth)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/QIN2DIM/undetected-playwright",
    "name": "undetected-playwright",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "undetected,playwright,steath",
    "author": "QIN2DIM",
    "author_email": "yaoqinse@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/96/72/bce9861844102787d908108d2b0923437174983e846cc41fb21f4df66e54/undetected_playwright-0.2.0.tar.gz",
    "platform": null,
    "description": "# undetected-playwright\n\n## Usage\n\n1. **Download PyPi package**\n\n   ```bash\n   pip install -U undetected-playwright\n   ```\n\n2. **Run the demo**\n\n   As before.\n\n   ```python\n   from playwright.sync_api import BrowserContext, sync_playwright\n   \n   from undetected_playwright import stealth_sync\n   \n   headless = True\n   \n   \n   def run(context: BrowserContext):\n       page = context.new_page()\n       page.goto(\"https://bot.sannysoft.com/\")\n   \n       _suffix = \"-headless\" if headless else \"-headful\"\n       page.screenshot(path=f\"result/sannysoft{_suffix}.png\", full_page=True)\n   \n   \n   def bytedance():\n       with sync_playwright() as p:\n           browser = p.chromium.launch(headless=headless)\n           context = browser.new_context()\n           stealth_sync(context)\n           run(context)\n   \n   \n   if __name__ == \"__main__\":\n       bytedance()\n   ```\n\n   \n\n## Reference\n\n- [berstend/puppeteer-extra](https://github.com/berstend/puppeteer-extra)\n\n- [AtuboDad/playwright_stealth: playwright stealth (github.com)](https://github.com/AtuboDad/playwright_stealth)\n- [Granitosaurus/playwright-stealth (github.com)](https://github.com/Granitosaurus/playwright-stealth)\n\n- [diprajpatra/selenium-stealth: Trying to make python selenium more stealthy. (github.com)](https://github.com/diprajpatra/selenium-stealth)\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "You know who I am",
    "version": "0.2.0",
    "project_urls": {
        "Documentation": "https://github.com/QIN2DIM/undetected-playwright",
        "Homepage": "https://github.com/QIN2DIM/undetected-playwright",
        "Repository": "https://github.com/QIN2DIM/undetected-playwright"
    },
    "split_keywords": [
        "undetected",
        "playwright",
        "steath"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "89b594ec9030270b4b13061a554c7505901f5ab861bd682edbf9cf538292f4e0",
                "md5": "2e3a9911d8bc58fbb5a98851b8aa1193",
                "sha256": "d6c4f54db02c2f533d9de4197b8b3e54a7e693fe3dc47b31f1527b04c04b86f7"
            },
            "downloads": -1,
            "filename": "undetected_playwright-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2e3a9911d8bc58fbb5a98851b8aa1193",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 53242,
            "upload_time": "2023-08-24T12:42:24",
            "upload_time_iso_8601": "2023-08-24T12:42:24.431614Z",
            "url": "https://files.pythonhosted.org/packages/89/b5/94ec9030270b4b13061a554c7505901f5ab861bd682edbf9cf538292f4e0/undetected_playwright-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "9672bce9861844102787d908108d2b0923437174983e846cc41fb21f4df66e54",
                "md5": "1650fe75be6eb354ab35da16ea08b782",
                "sha256": "042c2138ce84ed8522d20e3ba56bb4932e7eab0fd8255e85f501d0a604e5c146"
            },
            "downloads": -1,
            "filename": "undetected_playwright-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "1650fe75be6eb354ab35da16ea08b782",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 32280,
            "upload_time": "2023-08-24T12:42:26",
            "upload_time_iso_8601": "2023-08-24T12:42:26.321642Z",
            "url": "https://files.pythonhosted.org/packages/96/72/bce9861844102787d908108d2b0923437174983e846cc41fb21f4df66e54/undetected_playwright-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-24 12:42:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "QIN2DIM",
    "github_project": "undetected-playwright",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "undetected-playwright"
}
        
Elapsed time: 0.10622s