{"id":19035240,"url":"https://github.com/omkarcloud/capsolver-extension-python","last_synced_at":"2025-04-23T18:04:06.609Z","repository":{"id":219253141,"uuid":"748611009","full_name":"omkarcloud/capsolver-extension-python","owner":"omkarcloud","description":"Capsolver Extension Python allows you to easily integrate Capsolver Extension in web automation frameworks like Botasaurus, Selenium, and Playwright.","archived":false,"fork":false,"pushed_at":"2024-05-17T05:52:26.000Z","size":6,"stargazers_count":12,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-16T13:58:05.709Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.omkar.cloud/","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/omkarcloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["Chetan11-Dev"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-01-26T11:21:08.000Z","updated_at":"2025-04-02T23:20:17.000Z","dependencies_parsed_at":"2024-01-26T11:45:49.910Z","dependency_job_id":"4b3a15e6-cf54-44dc-b19a-da196226ac8b","html_url":"https://github.com/omkarcloud/capsolver-extension-python","commit_stats":null,"previous_names":["omkarcloud/capsolver-extension-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcapsolver-extension-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcapsolver-extension-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcapsolver-extension-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omkarcloud%2Fcapsolver-extension-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omkarcloud","download_url":"https://codeload.github.com/omkarcloud/capsolver-extension-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249348688,"owners_count":21255302,"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-11-08T21:49:45.649Z","updated_at":"2025-04-17T14:32:57.363Z","avatar_url":"https://github.com/omkarcloud.png","language":"Python","funding_links":["https://github.com/sponsors/Chetan11-Dev"],"categories":[],"sub_categories":[],"readme":"# Capsolver Extension Python\n\nCapsolver Extension Python helps you easily use Capsolver Extension in Botasaurus, Selenium, and Playwright.\n\nYou can easily configure Capsolver with an API key without needing to download the Capsolver Extension, update config files, etc.\n\n\n## Installation\n\n```bash \npython -m pip install capsolver_extension_python\n```\n\n## Usage with [Botasaurus Web Scraping Framework](https://github.com/omkarcloud/botasaurus)\n\n```python\nfrom botasaurus.browser import browser, Driver\nfrom capsolver_extension_python import Capsolver\n\n@browser(\n    extensions=[Capsolver(api_key=\"CAP-MY_KEY\")], # TODO: Replace with your own CapSolver Key\n)  \ndef solve_captcha(driver: Driver, data):\n    driver.get(\"https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php\")\n    driver.prompt()\n\nsolve_captcha()\n```\n\n## Usage with Selenium \n\n```python\nfrom selenium import webdriver\nfrom selenium.webdriver.chrome.options import Options\nfrom chromedriver_autoinstaller import install\nfrom capsolver_extension_python import Capsolver\n\n# Set Chrome options\noptions = Options()\noptions.add_argument(Capsolver(api_key=\"CAP-MY_KEY\").load()) # TODO: Replace with your own CapSolver Key\n# Install and set up the driver\ndriver_path = install()\ndriver = webdriver.Chrome(driver_path, options=options)\n\n# Navigate to the desired URL\ndriver.get(\"https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php\")\n\n# Prompt for user input\ninput(\"Press Enter to exit...\")\n\n# Clean up\ndriver.quit()\n```\n\n## Usage with Playwright\n\n```python\nfrom playwright.sync_api import sync_playwright\nfrom capsolver_extension_python import Capsolver\nimport random\n\ndef generate_random_profile():\n    return str(random.randint(1, 1000))\n\nwith sync_playwright() as p:\n    extension_path = Capsolver(api_key=\"CAP-MY_KEY\").load(with_command_line_option=False) # TODO: Replace with your own CapSolver Key\n    browser = p.chromium.launch_persistent_context(\n        user_data_dir=generate_random_profile(),\n        headless=False,\n        args=[\n            '--disable-extensions-except='+ extension_path,\n            '--load-extension=' + extension_path,\n        ],\n    )\n    page = browser.new_page()\n    page.goto(\"https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php\")\n    input(\"Press Enter to exit...\")\n    browser.close()\n```\n## Use App ID\n\n```python\nfrom botasaurus.browser import browser, Driver\nfrom capsolver_extension_python import Capsolver\n\n@browser(\n    extensions=[Capsolver(api_key=\"CAP-MY_KEY\", app_id=\"DC601421-43D5-45E4-9FDB-B3BAF7A2C3FD\")], # TODO: Replace with your own CapSolver Key and App ID\n)  \ndef solve_captcha(driver: Driver, data):\n    driver.get(\"https://recaptcha-demo.appspot.com/recaptcha-v2-checkbox.php\")\n    driver.prompt()\n\nsolve_captcha()\n```\n\n## Note\n\nWhen you use the Capsolver Extension, we integrate our own app ID into the extension if you haven't provided one. This allows us to earn a small commission from each captcha you solve, at no extra cost to you. \n\nThese funds supports us in our efforts to develop awesome open-source projects to make your life easy.\n\n## Love It? [Star It ⭐!](https://github.com/omkarcloud/capsolver-extension-python)\n\nBecome one of our amazing stargazers by giving us a star ⭐ on GitHub!\n\nIt's just one click, but it means the world to me.\n\n[![Stargazers for @omkarcloud/capsolver-extension-python](https://bytecrank.com/nastyox/reporoster/php/stargazersSVG.php?user=omkarcloud\u0026repo=capsolver-extension-python)](https://github.com/omkarcloud/capsolver-extension-python/stargazers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkarcloud%2Fcapsolver-extension-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomkarcloud%2Fcapsolver-extension-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomkarcloud%2Fcapsolver-extension-python/lists"}