Skip to main content

使用 斐斐打码 对验证码进行打码

Project description

前言

本来是想找一个python 识别二维码的。可是网上网上找到的教程都是教人怎么自己写一个用例去请求打码请求,或是自己找第三方库实现。 显然这都不是我想要的。我想要的就是拿来即用。

上诉两种方案其一需要自己写,代码复用率不高,或是直接从平台复制用例对代码侵入比较大。其二的识别率不高。

解决痛点

  1. pip 直接安装无需关注实现细节
  2. 保持更新。稳定可用
  3. 识别率搞
  4. 识别结果记录log 识别失败可退款

todo

  1. 接入其他打码平台

斐斐云打码

使用 斐斐打码 对验证码进行打码。一次封装简单使用

测试账号

PD账号:119208

PD秘钥:gfPmvlxPWdGEplGZtr3aIuaWP1/fyZW3

打码平台地址

如何使用

官方文档地址

测试用例 test/test.py

引入

pip install yundama

实例化

from yundama.Yundama import Yundama
yundama = Yundama(app_id="你的pd_id", app_key="你的pd_key")

查询余额

yundama.get_balance()

提交需要验证的图片

类型说明

img = open('../data/image.png', 'rb')
yundama.get_code_result(img.read(), '验证码类型')

退款

yundama.refund('订单id')

充值

yundama.recharge('充值卡号', '充值卡密')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yundama-0.1.5.tar.gz (4.2 kB view details)

Uploaded Source

File details

Details for the file yundama-0.1.5.tar.gz.

File metadata

  • Download URL: yundama-0.1.5.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.41.0 CPython/3.7.5

File hashes

Hashes for yundama-0.1.5.tar.gz
Algorithm Hash digest
SHA256 144e7b243c61722b5aa3368eaddd17a0f6ad0347cd1df835fc52e6fe947e19cc
MD5 16a5a6f11057ad398958d9bfd69817f1
BLAKE2b-256 c944d99f64688390ff0778728e5062a3656c9fd56a30a567609baa55d3e1e3a5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page