{"id":20054034,"url":"https://github.com/dzmitry-duboyski/normal-captcha-example","last_synced_at":"2026-05-12T18:04:54.763Z","repository":{"id":153498791,"uuid":"533388119","full_name":"dzmitry-duboyski/normal-captcha-example","owner":"dzmitry-duboyski","description":"Solve normal (image) captcha with puppeteer and 2captcha","archived":false,"fork":false,"pushed_at":"2023-11-03T20:51:44.000Z","size":54,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-02T09:16:31.954Z","etag":null,"topics":["2captcha","base64","captcha","captcha-recognition","captcha-solver","captcha-solving","imagecaptcha","javascript","nodejs","peppeteer","puppeteer-demo"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/dzmitry-duboyski.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-06T15:30:19.000Z","updated_at":"2023-11-08T20:16:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"611a195d-2814-431d-9490-22c58f421a11","html_url":"https://github.com/dzmitry-duboyski/normal-captcha-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dzmitry-duboyski/normal-captcha-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzmitry-duboyski%2Fnormal-captcha-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzmitry-duboyski%2Fnormal-captcha-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzmitry-duboyski%2Fnormal-captcha-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzmitry-duboyski%2Fnormal-captcha-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dzmitry-duboyski","download_url":"https://codeload.github.com/dzmitry-duboyski/normal-captcha-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dzmitry-duboyski%2Fnormal-captcha-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286079811,"owners_count":27282121,"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","status":"online","status_checked_at":"2025-11-25T02:00:05.816Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["2captcha","base64","captcha","captcha-recognition","captcha-solver","captcha-solving","imagecaptcha","javascript","nodejs","peppeteer","puppeteer-demo"],"created_at":"2024-11-13T12:32:11.399Z","updated_at":"2025-11-25T19:04:06.492Z","avatar_url":"https://github.com/dzmitry-duboyski.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to automate an image-based captcha solution in JavaScript\n\n## Description\nIn this example, you can see how automate an image-based captcha solution in JavaScript using [Puppeteer](https://pptr.dev/) and the 2captcha service.\n[Puppeteer](https://pptr.dev/) is Node.js library using for automation. [2captcha](https://2captcha.com) is service used to solve the captcha.\n\n### Presetting\nSet your `API KEY` in the file  [./index.js#L3](./index.js#L5)\n\n`APIKEY=yourApiKey`\n\n### Usage\n\n`npm i`\n\n`npm run start`\n\n### Example\n```js\n  const getCaptchaAnswer = async () =\u003e {\n    try {\n      //send captcha\n      const base64Captcha = fs.readFileSync(\"./image_captcha.png\", \"base64\");\n      const res = await solver.imageCaptcha({\n        body: base64Captcha,\n      });\n      return res.data;\n    } catch (err) {\n      console.log(err);\n    }\n  };\n```\n\nScreenshot:\n\n![imageCaptcha](https://user-images.githubusercontent.com/38065632/236539708-ee094431-2be8-4629-97b7-285871cffba1.gif)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzmitry-duboyski%2Fnormal-captcha-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdzmitry-duboyski%2Fnormal-captcha-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdzmitry-duboyski%2Fnormal-captcha-example/lists"}