请求示例
# python3.6.5 # 需要引入requests包 :运行终端->进入python/Scripts ->输入:pip install requests from ShowapiRequest import ShowapiRequest r = ShowapiRequest("http://route.showapi.com/184-5","my_appId","my_appSecret" ) r.addBodyPara("img_base64", "") r.addBodyPara("typeId", "34") r.addBodyPara("convert_to_jpg", "0") r.addBodyPara("needMorePrecise", "0") res = r.post() print(res.text) # 返回信息
响应示例
{ "showapi_res_code": 0, "showapi_res_error": "", "showapi_res_body": { "Result": "6nr9a" } }
图片验证码识别:ModuleNotFoundError: No module named 'ShowapiRequest'