{"id":22302959,"url":"https://github.com/erizoat/solve-amazon-captcha-python","last_synced_at":"2025-03-26T00:32:08.935Z","repository":{"id":226563914,"uuid":"769043004","full_name":"ERIZOAT/solve-amazon-captcha-python","owner":"ERIZOAT","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-08T08:23:33.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T21:18:00.542Z","etag":null,"topics":["amazon","amazon-captcha","amazon-captcha-automation","amazon-captcha-bypass","amazon-captcha-recognition","amazon-captcha-solver","amazon-captcha-solver-service","amazon-captcha-solving","amazon-captcha-solving-api","amazon-funcaptcha","amazon-funcaptcha-solver","amazon-funcaptcha-solving","captcha","captcha-python","captcha-recognition","captcha-solver","captcha-solving","funcaptcha","funcaptcha-captcha-solver","funcaptcha-solver"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ERIZOAT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-08T08:19:55.000Z","updated_at":"2024-08-09T16:11:14.000Z","dependencies_parsed_at":"2024-03-08T09:39:51.530Z","dependency_job_id":null,"html_url":"https://github.com/ERIZOAT/solve-amazon-captcha-python","commit_stats":null,"previous_names":["erizoat/solve-amazon-captcha-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERIZOAT%2Fsolve-amazon-captcha-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERIZOAT%2Fsolve-amazon-captcha-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERIZOAT%2Fsolve-amazon-captcha-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ERIZOAT%2Fsolve-amazon-captcha-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ERIZOAT","download_url":"https://codeload.github.com/ERIZOAT/solve-amazon-captcha-python/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245566084,"owners_count":20636390,"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":["amazon","amazon-captcha","amazon-captcha-automation","amazon-captcha-bypass","amazon-captcha-recognition","amazon-captcha-solver","amazon-captcha-solver-service","amazon-captcha-solving","amazon-captcha-solving-api","amazon-funcaptcha","amazon-funcaptcha-solver","amazon-funcaptcha-solving","captcha","captcha-python","captcha-recognition","captcha-solver","captcha-solving","funcaptcha","funcaptcha-captcha-solver","funcaptcha-solver"],"created_at":"2024-12-03T18:42:06.313Z","updated_at":"2025-03-26T00:32:08.901Z","avatar_url":"https://github.com/ERIZOAT.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to Solve Amazon captcha using Python\nAre you tired of being halted by CAPTCHA challenges while scraping data from Amazon? In this guide, we'll walk you through solving Amazon CAPTCHAs effortlessly using Python, with the help of Capsolver.\n\n## Bonus Code\n A bonus code for [Capsolver](https://www.capsolver.com/): **AMN**. After redeeming it, you will get an extra 5% bonus after each recharge, Unlimited\n ![image](https://github.com/ERIZOAT/solve-amazon-captcha-python/assets/157081315/fc2a6424-a77d-48f1-a33d-458d1dfae0d9)\n\n\n## Why Solve Amazon CAPTCHAs?\n\nAmazon, like many other websites, employs CAPTCHA challenges to prevent automated bots from accessing their data. While CAPTCHAs serve a valuable security purpose, they can be a hindrance when you're trying to scrape product information or other data from the platform.\n\n## Introducing Capsolver\n\nCapsolver offers a powerful solution for automating CAPTCHA solving tasks. With its user-friendly API and extensive documentation, Capsolver makes it easy to integrate CAPTCHA solving capabilities into your Python scripts.\n\n## Using Python to Solve Amazon CAPTCHAs\n\nBelow is a simple Python script that demonstrates how to use Capsolver to solve Amazon CAPTCHAs:\n\n### Create Task\n\nCreate a task with the [createTask](../api-createtask.md) to create a task.\n\n### Task Object Structure\n\n| Properties               | Type   | Required | Description                                                                                                                                                                                                                                                                                                                |\n|--------------------------|--------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| type                     | String | Required | `FunCaptchaTaskProxyLess`                                                                                                                                                                                                                                                                                                  |\n| websiteURL               | String | Required | Web address of the website using funcaptcha, generally it's fixed value. (Ex: https://google.com)                                                                                                                                                                                                                          |\n| websitePublicKey         | String | Required | The domain public key, rarely updated. (Ex: E8A75615-1CBA-5DFF-8031-D16BCF234E10)                                                                                                                                                                                                                                          |\n| funcaptchaApiJSSubdomain | String | Optional | A special subdomain of [funcaptcha.com](http://funcaptcha.com/), from which the JS captcha widget should be loaded. Most FunCaptcha installations work from shared domains.                                                                                                                                                |\n| data                     | String | Optional | Additional parameter that may be required by FunCaptcha implementation. Use this property to send \"blob\" value as a stringified array. See example how it may look like. {\"\\blob\\\":\\\"HERE_COMES_THE_blob_VALUE\\\"}  Learn [how to get FunCaptcha blob data](https://www.capsolver.com/blog/FunCaptcha/funcaptcha-data-blob) |\n| proxy                    | String | Optional | Learn [Using proxies](../api-how-to-use-proxy)                                                                                                                                                                                                                                                                             |\n\n### Example Request\n\n``` json\nPOST https://api.capsolver.com/createTask\nHost: api.capsolver.com\nContent-Type: application/json\n\n{\n    \"clientKey\": \"YOUR_API_KEY_HERE\",\n    \"task\": {\n        \"type\":\"FunCaptchaTaskProxyLess\", //Required\n        \"websiteURL\":\"\", //Required\n        \"websitePublicKey\":\"\", //Required\n        \"data\": \"{\\\"blob\\\": \\\"flaR60YY3tnRXv6w.l32U2KgdgEUCbyoSPI4jOxU...\\\"}\" // Optional\n    }\n}\n```\n\n\nAfter you submit the task to us, you should receive in the response a 'Task id' if it's successfull. Please\nread [errorCode: full list of errors](https://captchaai.atlassian.net/wiki/spaces/CAPTCHAAI/pages/394062/FuncaptchaTask+solving+FunCaptcha#)\nif you didn't receive the task id.\n\n### Example Response\n\n``` json\n{\n    \"errorId\": 0,\n    \"status\": \"idle\",\n    \"taskId\": \"61138bb6-19fb-11ec-a9c8-0242ac110006\"\n}\n\n```\n\n### **Getting Result**\n\nUse the [getTaskResult](../api-gettaskresult.md) method to get the recognition results\n\nDepending on the system load, you will get the results within the interval of `1s` to `20s`\n\n### Example Request\n\n``` json\nPOST https://api.capsolver.com/getTaskResult\nHost: api.capsolver.com\nContent-Type: application/json\n\n{\n    \"clientKey\": \"YOUR_API_KEY\",\n    \"taskId\": \"61138bb6-19fb-11ec-a9c8-0242ac110006\"\n}\n```\n\n### Example Response\n\n``` json\n{\n    \"errorId\": 0,\n    \"solution\": {\n        \"userAgent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36\",\n        \"token\": \"3AHJ_q25SxXT-pmSeBXjzScW-EiocHwwpwqtk1QXlJnGnU......\"\n    },\n    \"status\": \"ready\"\n}\n```\n\n\n## Solving Amazon Imagetotext\n\n\n\n:::\n\n### Create Task\n\nCreate the task with the [createTask](../api-createtask.md).\n\n**Task Object Structure**\n\nNote that this type of task returns the task execution result directly after createTask, rather than getting it\nasynchronously through getTaskResult.\n\n| Properties | Type    | Required | Description                                                                                            |\n|------------|---------|----------|--------------------------------------------------------------------------------------------------------|\n| type       | String  | Required | ImageToTextTask                                                                                        |\n| websiteURL | String  | Optional | Page source url to improve accuracy                                                                    |\n| body       | String  | Required | base64 encoded content of the image (no newlines) (no data:image/****\\*****; base64, content           |\n| module     | String  | Optional | Specifies the module. Currently, the supported modules are common and queueit                          |\n| score      | Float   | Optional | `0.8 ~ 1`, Identify the matching degree. If the recognition rate is not within the range, no deduction |\n| case       | Boolean | Optional | Case sensitive or not                                                                                  |\n\n### Example Request\n\n```text\nPOST https://api.capsolver.com/createTask\nHost: api.capsolver.com\nContent-Type: application/json\n```\n\n```json lines\n{\n  \"clientKey\": \"YOUR_API_KEY\",\n  \"task\": {\n    \"type\": \"ImageToTextTask\",\n    \"websiteURL\": \"https://xxxx.com\",\n    // You can choose the module you need to use\n    // ocr single image model, default common\n    \"module\": \"queueit\",\n    // base64 encoded image\n    \"body\": \"/9j/4AAQSkZJRgABA......\"\n  }\n}\n```\n\n### Example Response\n\n```json lines\n{\n  \"errorId\": 0,\n  \"errorCode\": \"\",\n  \"errorDescription\": \"\",\n  \"status\": \"ready\",\n  \"solution\": {\n    \"text\": \"44795sds\"\n  },\n  \"taskId\": \"2376919c-1863-11ec-a012-94e6f7355a0b\"\n}\n```\n\n## Conclusion\n\nWith Capsolver and Python, solving Amazon CAPTCHAs becomes a breeze. By integrating Capsolver's API into your Python scripts, you can overcome CAPTCHA challenges and streamline your web scraping workflow. Say goodbye to CAPTCHA frustrations and hello to efficient data scraping on Amazon!\n\n## Documentation \n[Capsolver API documentation](https://docs.capsolver.com/guide/api-server.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferizoat%2Fsolve-amazon-captcha-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferizoat%2Fsolve-amazon-captcha-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferizoat%2Fsolve-amazon-captcha-python/lists"}