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

网站域名申请步骤石家庄今天最新新闻头条

网站域名申请步骤,石家庄今天最新新闻头条,淘宝推广软件,网页制作300字心得1.超级鹰注册 超级鹰: https://www.chaojiying.com/ 注册后购买题分 2.获取要识别的图片 我们以这个附件下载的网页为例: https://gh.lnut.edu.cn/system/_content/download.jsp?urltypenews.DownloadAttachUrl&owner1224556702&wbfileid1504223 点开f12然后刷新几…

1.超级鹰注册

超级鹰: https://www.chaojiying.com/
注册后购买题分

2.获取要识别的图片

我们以这个附件下载的网页为例: https://gh.lnut.edu.cn/system/_content/download.jsp?urltype=news.DownloadAttachUrl&owner=1224556702&wbfileid=1504223
点开f12然后刷新几次验证吗找到接口

在这里插入图片描述
验证码图片接口链接: https://gh.lnut.edu.cn/system/resource/js/filedownload/createimage.jsp
每次访问都会刷新出新的图片

import requests
img_url='https://www.jsei.edu.cn/system/resource/js/filedownload/createimage.jsp'
img_res=requests.get(img_url,verify=False)

3.使用超级鹰识别验证码

首先需要将超级鹰的文档保存

#!/usr/bin/env python
# coding:utf-8import requests
from hashlib import md5class Chaojiying_Client(object):def __init__(self, username, password, soft_id):self.username = usernamepassword =  password.encode('utf8')self.password = md5(password).hexdigest()self.soft_id = soft_idself.base_params = {'user': self.username,'pass2': self.password,'softid': self.soft_id,}self.headers = {'Connection': 'Keep-Alive','User-Agent': 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0)',}def PostPic(self, im, codetype):"""im: 图片字节codetype: 题目类型 参考 http://www.chaojiying.com/price.html"""params = {'codetype': codetype,}params.update(self.base_params)files = {'userfile': ('ccc.jpg', im)}r = requests.post('http://upload.chaojiying.net/Upload/Processing.php', data=params, files=files, headers=self.headers)return r.json()def PostPic_base64(self, base64_str, codetype):"""im: 图片字节codetype: 题目类型 参考 http://www.chaojiying.com/price.html"""params = {'codetype': codetype,'file_base64':base64_str}params.update(self.base_params)r = requests.post('http://upload.chaojiying.net/Upload/Processing.php', data=params, headers=self.headers)return r.json()def ReportError(self, im_id):"""im_id:报错题目的图片ID"""params = {'id': im_id,}params.update(self.base_params)r = requests.post('http://upload.chaojiying.net/Upload/ReportError.php', data=params, headers=self.headers)return r.json()

使用超级鹰

import requests
from chaojiying import *
import requests
img_url='https://gh.lnut.edu.cn/system/resource/js/filedownload/createimage.jsp'
img_res=requests.get(img_url,verify=False)
chaojiying = Chaojiying_Client('账号', '密码', '软件ID')	#用户中心>>软件ID 生成一个替换 96001												#本地图片文件路径 来替换 a.jpg 有时WIN系统须要//
yzmcode=chaojiying.PostPic(img_res.content, 1902)["pic_str"]
print(yzmcode)
http://www.mnyf.cn/news/530.html

相关文章:

  • 重庆市建设和交通委员会网站网站建设技术解决方案
  • 建设工程项目在哪个网站查询高权重外链
  • 网站建设现状网站注册流程和费用
  • 怎么用2级目录做网站在哪里可以找到网站
  • 温州网站设计服务商免费观看行情软件网站进入
  • 银川网站建设哪家优质百度竞价推广联系方式
  • 鞍山建立公司网站的步骤百度搜索关键词排名人工优化
  • 抚州建设网站国内最大的搜索引擎
  • 武汉专业做网站jw100网络培训平台有哪些
  • 可以申请免费的个人网站吗百度竞价排名叫什么
  • 怎么把网站提交经典的软文广告
  • wordpress 4.7.2 漏洞seo网络推广企业
  • 网线制作心得与体会推广优化网站排名
  • 网站背投广告代码图片外链在线生成
  • 广州网站改版上海网站建设开发公司
  • 做外贸 网站品牌营销策划方案
  • 视频网站建设方案怎么自己创建一个网页
  • 寿光网站建设多少钱seo中国官网
  • 做网站要用什么软件新媒体营销案例ppt
  • 做外贸独立网站 但是产品不行营销技巧培训
  • 建设 政务数据共享网站最新app推广项目平台
  • 网站促销活动策划做好的网站怎么优化
  • 网站 利润百度付费问答平台
  • 网站建设运用软件十大搜索引擎
  • 基于jsp的电商网站开发网盘资源搜索神器
  • 专业建站网站服务关键词搜索排名查询
  • 腾讯网站谁做的网站优化排名软件网
  • 建设银行网站修改手机号码seo具体seo怎么优化
  • 红酒企业网站建设seo是付费还是免费推广
  • 做wish选品网站 数据网站百度网址链接