Browse Source

更新验证码地址

lizongze 1 year ago
parent
commit
282d7d0dca
1 changed files with 5 additions and 5 deletions
  1. 5 5
      FworkSpider/untils/get_imgcode.py

+ 5 - 5
FworkSpider/untils/get_imgcode.py

@@ -32,7 +32,7 @@ def _simple_captcha(file):
     @param file: 验证码 - 可以是图片或者图片base64编码
     @param file: 验证码 - 可以是图片或者图片base64编码
     @return:
     @return:
     """
     """
-    url = "http://123.57.163.80:2119/v1/images/verify"
+    url = "http://pycaptcha.spdata.jianyu360.com/v1/images/verify"
     files = _pack_file(file)
     files = _pack_file(file)
     r = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
     r = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
     rp_json = r.json()
     rp_json = r.json()
@@ -43,7 +43,7 @@ def _simple_captcha(file):
 
 
 def _arithmetic_captcha(file):
 def _arithmetic_captcha(file):
     """算术验证码"""
     """算术验证码"""
-    url = "http://123.57.163.80:2119/v1/images/arithmetic"
+    url = "http://pycaptcha.spdata.jianyu360.com/v1/images/arithmetic"
     files = _pack_file(file)
     files = _pack_file(file)
     r = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
     r = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
     json_resp = r.json()
     json_resp = r.json()
@@ -54,7 +54,7 @@ def _arithmetic_captcha(file):
 
 
 def _get_click_verify_captcha(file):
 def _get_click_verify_captcha(file):
     """点触式验证码"""
     """点触式验证码"""
-    url = "http://123.57.163.80:2119/v1/images/verify_det"
+    url = "http://pycaptcha.spdata.jianyu360.com/v1/images/verify_det"
     files = {"image_content": v for k, v in _pack_file(file).items()}
     files = {"image_content": v for k, v in _pack_file(file).items()}
     r = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
     r = requests.post(url, headers=headers, files=files, stream=True, timeout=10)
     return r.json()
     return r.json()
@@ -77,7 +77,7 @@ def chaojiying_platform(file, pic_type: int):
     pic_type,详情查询地址: https://www.chaojiying.com/price.html
     pic_type,详情查询地址: https://www.chaojiying.com/price.html
     """
     """
     files = _pack_file(file)
     files = _pack_file(file)
-    url = f"http://123.57.163.80:2119/v1/images/discern?pic_type={pic_type}"
+    url = f"http://pycaptcha.spdata.jianyu360.com/v1/images/discern?pic_type={pic_type}"
     headers = {'accept': 'application/json'}
     headers = {'accept': 'application/json'}
     data = {
     data = {
         'grant_type': '',
         'grant_type': '',
@@ -99,7 +99,7 @@ def chaojiying_platform(file, pic_type: int):
 
 
 def chaojiying_report(pic_id: str):
 def chaojiying_report(pic_id: str):
     """超级鹰平台识别验证码错误时,提交识别错误的验证码pic_id"""
     """超级鹰平台识别验证码错误时,提交识别错误的验证码pic_id"""
-    url = f"http://123.57.163.80:2119/v1/images/report_err?pic_id={pic_id}"
+    url = f"http://pycaptcha.spdata.jianyu360.com/v1/images/report_err?pic_id={pic_id}"
     headers = {
     headers = {
         'accept': 'application/json',
         'accept': 'application/json',
         'Content-Type': 'application/x-www-form-urlencoded'
         'Content-Type': 'application/x-www-form-urlencoded'