https://github.com/yetone/decaptcha
Auto CAPTCHA solving for Scrapy
https://github.com/yetone/decaptcha
Last synced: 12 months ago
JSON representation
Auto CAPTCHA solving for Scrapy
- Host: GitHub
- URL: https://github.com/yetone/decaptcha
- Owner: yetone
- Created: 2015-12-03T13:56:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2022-03-01T13:33:57.000Z (over 4 years ago)
- Last Synced: 2025-06-15T00:15:42.940Z (12 months ago)
- Language: Python
- Size: 32.2 KB
- Stars: 20
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DeCAPTCHA
===
A Scrapy middleware that solves CAPTCHAs found on web pages
The middleware uses 2 kind of sub-components:
- **Engines**: responsible for finding captcha on page and submitting it
- **Solvers**: convert CAPTCHA image file to text
Usage
---
To use decaptcha in your Scrapy project, you must set some variables in your `settings.py` file:
# enable/disable middleware
DECAPTCHA_ENABLED = 1
# set engines classes
DECAPTCHA_ENGINES = {
'decaptcha.engines.recaptcha.RecaptchaEngine': 500,
}
# set solver class
DECAPTCHA_SOLVER = 'decaptcha.solvers.deathbycaptcha.DeathbycaptchaSolver'
# configure deathbycaptcha solver
DECAPTCHA_DEATHBYCAPTCHA_USERNAME = 'your-username'
DECAPTCHA_DEATHBYCAPTCHA_PASSWORD = 'your-password'
Supported engines
---
- `decaptcha.engines.recaptcha.RecaptchaEngine` - Google reCAPTCHA engine
Supported solvers
---
- `decaptcha.solvers.deathbycaptcha.DeathbycaptchaSolver` - Solver that uses [http://www.deathbycaptcha.com/](http://www.deathbycaptcha.com/) service