摘要:
url = "https:" + url 或者url = response.urljoin(url) #这里代表的是自动补全url 阅读全文
摘要:
1.通过肉眼识别,然后输入到input里面 from PIL import image Image request.urlretrieve(url,'image') #下载验证码图片 image = Image.open('image') #程序内部打开图片 image.show() #将图片显示出 阅读全文
摘要:
import os #创建文件夹 from urllib import request #下载图片 if not os.path.exists('文件夹名字'): #创建文件夹名字 os.mkdir('文件夹名字') img_path = '文件夹名字/' + 图片名字 request.urlretrieve(url=url,filename=img_path) #u... 阅读全文
摘要:
标签如下:<img id="captcha_image" src="https://www.douban.com/misc/cantcha?id=jskdjf" alt="captcha" class="captcha_image"> 使用css选择器:captcha_img = html.css( 阅读全文