Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bytebuff/captche
https://github.com/bytebuff/captche
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bytebuff/captche
- Owner: bytebuff
- Created: 2021-01-05T08:00:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-05T08:47:43.000Z (almost 4 years ago)
- Last Synced: 2024-03-04T22:35:39.816Z (8 months ago)
- Language: Python
- Size: 30.9 MB
- Stars: 23
- Watchers: 1
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CaPtchE简介
CaPtchE是本地打码服务,识别英文数字类型的验证码,可以快速用于验证码识别场景!有易语言版本和Python版本!
# CaPtchE易语言版本使用方式
- 下载该项目
- 双击exe执行文件
- 点击启动服务
- 调用执行打码服务,示例代码如下:
```python
import requestsclass HttpRequest:
def __init__(self):
self.url = 'http://127.0.0.1:5658/{}'
self.headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36"
}
self.data = {}
def http_request_get(self):
response = requests.get(self.url.format("Base64后的图片"), headers=self.headers)
print(response.text)if __name__ == '__main__':
session = HttpRequest()
session.http_request_get()
```
# CaPtchE的Python版本使用方式
- 下载该项目
- GeckoCr直接运行bat终端就好了
- 调用的话使用POST方式提交base64编码的图片
- 示例代码:
```python
import requestsclass HttpRequest:
def __init__(self):
self.url = 'http://127.0.0.1:8001/gecko'self.data = {
'img': "Base64后的图片"
}def http_request_post(self):
response = requests.get(self.url, data=self.data)
print(response.text)if __name__ == '__main__':
session = HttpRequest()
session.http_request_post()
```