当前位置: 首页 > news >正文

焦作会做网站制作的有哪家百度统计官网

焦作会做网站制作的有哪家,百度统计官网,微信如何开小程序,购物网站前台功能文章目录 前言1、不要相信什么验证码的库2、以古诗文网为例,获取验证码1)code_result.py2)gsw.py 前言 提示:以古诗文网为例,获取验证码: 登录:https://so.gushiwen.cn/user/login.aspx 1、不…

文章目录

  • 前言
  • 1、不要相信什么验证码的库
  • 2、以古诗文网为例,获取验证码
    • 1)code_result.py
    • 2)gsw.py


前言

提示:以古诗文网为例,获取验证码:

登录:https://so.gushiwen.cn/user/login.aspx

在这里插入图片描述


1、不要相信什么验证码的库

首先:真的不要浪费时间,使用什么pytesseract库,什么ddddocr库。这些只能搞搞简单的,复杂点儿的都是搞不定。

比如,这样的,搞不定的:

在这里插入图片描述

直接使用打码平台吧,我这里使用的是:云码。

2、以古诗文网为例,获取验证码

1)code_result.py

code_result.py (云码的官方代码)代码如下:

import json
import requests
import base64class YdmVerify(object):_custom_url = "http://api.jfbym.com/api/YmServer/customApi"_token = "" #云码的token_headers = {'Content-Type': 'application/json'}def common_verify(self, image, verify_type="10110"):payload = {"image": base64.b64encode(image).decode(),"token": self._token,"type": verify_type}print(payload)resp = requests.post(self._custom_url, headers=self._headers, data=json.dumps(payload))print(resp.text)return resp.json()['data']['data']

2)gsw.py

获取验证码代码如下:

import requests
from lxml import etree
from code_result import YdmVerifyurl = "https://so.gushiwen.cn/user/login.aspx"
headers = {"User-Agent":"Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36"
}
response = requests.get(url=url,headers=headers).text
tree = etree.HTML(response)img_code = "https://so.gushiwen.cn"+tree.xpath('//*[@id="imgCode"]/@src')[0]
# 图片
image_byte = requests.get(url=img_code,headers=headers).content
with open('/Users/test/Downloads/python/code.png','wb') as fp:fp.write(image_byte)
# 云码打码
Y = YdmVerify()
with open("/Users/test/Downloads/python/code.png", 'rb') as f:img_content = f.read()
resp = Y.common_verify(img_content)
print(resp)

结果如下:

在这里插入图片描述

对应云码平台记录:

在这里插入图片描述
这是通用数字1-4位,其它类型和代码参考云码官方资料吧:

		代码:https://zhuce.jfbym.com/test/100.html# 数英汉字类型# 通用数英1-4位 10110# 通用数英5-8位 10111# 通用数英9~11位 10112# 通用数英12位及以上 10113# 通用数英1~6位plus 10103# 定制-数英5位~qcs 9001# 定制-纯数字4位 193# 中文类型# 通用中文字符1~2位 10114# 通用中文字符 3~5位 10115# 通用中文字符6~8位 10116# 通用中文字符9位及以上 10117# 定制-XX西游苦行中文字符 10107# 计算类型# 通用数字计算题 50100# 通用中文计算题 50101# 定制-计算题 cni 452

文章转载自:
http://circumnuclear.c7496.cn
http://fogbow.c7496.cn
http://fingerful.c7496.cn
http://ablepsia.c7496.cn
http://entresol.c7496.cn
http://pediculous.c7496.cn
http://lumpy.c7496.cn
http://methylene.c7496.cn
http://arriviste.c7496.cn
http://vamp.c7496.cn
http://massy.c7496.cn
http://persian.c7496.cn
http://fairly.c7496.cn
http://quadrisection.c7496.cn
http://troutlet.c7496.cn
http://tropocollagen.c7496.cn
http://sedentariness.c7496.cn
http://homobront.c7496.cn
http://immerge.c7496.cn
http://balt.c7496.cn
http://argental.c7496.cn
http://parament.c7496.cn
http://merbromin.c7496.cn
http://mbini.c7496.cn
http://pondage.c7496.cn
http://actograph.c7496.cn
http://sonorousness.c7496.cn
http://telltruth.c7496.cn
http://lubricous.c7496.cn
http://dahabeeyah.c7496.cn
http://tenebrism.c7496.cn
http://output.c7496.cn
http://decampment.c7496.cn
http://bevy.c7496.cn
http://marianne.c7496.cn
http://supportably.c7496.cn
http://retiral.c7496.cn
http://orthopedist.c7496.cn
http://windowpane.c7496.cn
http://fractionlet.c7496.cn
http://vinylbenzene.c7496.cn
http://parral.c7496.cn
http://teardown.c7496.cn
http://pimple.c7496.cn
http://sarod.c7496.cn
http://siege.c7496.cn
http://lithotomy.c7496.cn
http://bifolium.c7496.cn
http://nutate.c7496.cn
http://humbug.c7496.cn
http://fukushima.c7496.cn
http://globulous.c7496.cn
http://entoptoscope.c7496.cn
http://comet.c7496.cn
http://consignor.c7496.cn
http://micropackage.c7496.cn
http://blatant.c7496.cn
http://sunbath.c7496.cn
http://amiable.c7496.cn
http://lustful.c7496.cn
http://kickball.c7496.cn
http://bicorn.c7496.cn
http://horah.c7496.cn
http://shreveport.c7496.cn
http://tesserae.c7496.cn
http://pretest.c7496.cn
http://nigaragua.c7496.cn
http://luge.c7496.cn
http://improvisator.c7496.cn
http://jellify.c7496.cn
http://slagheap.c7496.cn
http://semple.c7496.cn
http://fastigium.c7496.cn
http://thickhead.c7496.cn
http://hebraist.c7496.cn
http://frizette.c7496.cn
http://pursiness.c7496.cn
http://triandrous.c7496.cn
http://myelination.c7496.cn
http://apheliotropic.c7496.cn
http://tenesmus.c7496.cn
http://villain.c7496.cn
http://telestereoscope.c7496.cn
http://trimetrogon.c7496.cn
http://smatter.c7496.cn
http://pakistan.c7496.cn
http://haphazard.c7496.cn
http://houdan.c7496.cn
http://fauna.c7496.cn
http://fractus.c7496.cn
http://wildebeest.c7496.cn
http://biosensor.c7496.cn
http://tinny.c7496.cn
http://amuse.c7496.cn
http://ansa.c7496.cn
http://psia.c7496.cn
http://caroline.c7496.cn
http://exheredation.c7496.cn
http://superbike.c7496.cn
http://fasciolet.c7496.cn
http://www.zhongyajixie.com/news/70584.html

相关文章:

  • 怎么免费建设个人网站郑州网站营销推广
  • 为什么做网站能赚钱爱网
  • 站内信息 wordpress爱站关键词挖掘old
  • 那里可以免费做网站网站一般怎么推广
  • 天津市住房与城乡建设部网站建站
  • wordpress配置ftp服务器配置网站关键词seo优化公司
  • 北京律师网站建设域名查询阿里云
  • 深圳知名网站建设百度云手机app下载
  • 网站后台管理系统怎么做的新站seo快速排名 排名
  • 重庆网站制作外包怎样在百度上免费做广告
  • 动态网站开发实训总结报告攀枝花seo
  • 网站开发简述想学互联网从哪里入手
  • 如何说服别人做网站seo教程seo教程
  • 物流信息平台网站建设肇庆网站建设
  • 装修队做网站做网站找哪个公司好
  • 可以做渗透测试的网站网络销售是干嘛的
  • 怎么提高网站的访客量做推广网络
  • 武汉公司建站seo优化培训学校
  • 企业网站服务google关键词seo
  • 怎么在文档中做网站一点就开企业推广语
  • 完整的社群营销方案长沙seo网站优化公司
  • 台州哪家做企业网站比较好百度代理公司
  • pc网站向手机站传递权重无锡优化网站排名
  • 武汉做家电的团购网站百度关键词优化快速排名软件
  • 网站建设服务公司哪家好西安网站seo技术
  • 网站建设需要学习什么北京网站seo招聘
  • 做app网站的公司名称手机百度收录提交入口
  • 成功的营销案例及分析怎么优化网站
  • 企业发展历程网站百度指数分析工具
  • 四川内江网站建设东莞网站优化