超级鹰解决点触验证码

推荐使用超级鹰 http://www.chaojiying.com/ 注册账号,得到ID
超级鹰解决点触验证码_第1张图片
这是超级鹰的使用py 源码

import requests
from hashlib import md5

class Chaojiying_Client(object):

    def __init__(self, username, password, soft_id):
        self.username = username
        password =  password.encode('utf8')
        self.password = md5(password).hexdigest()
        self.soft_id = soft_id
        self.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, cod

你可能感兴趣的:(零基础学Python爬虫)