def get_img(self, url, headers=None, cookies=None, timeout=60, verify=False, proxies=None, allow_redirects=True,
                params=None):
        """
        get方式获取 img 二进制信息
        :param url: 访问Url
        :param headers: 请求头
        :param cookies: 请求cookies
        :param timeout: 超时时间
        :param verify: ssl验证
        :param proxies: 代理
        :param allow_redirects: 是否允许重定向
        :param encoding: 返回的html编码s
        :param params: 查询请求参数
        :return: 二进制图片数据
        """
        if self.session:
            r = self.session.get(url, headers=odict(headers), cookies=cookies, timeout=timeout, verify=verify,
                                 proxies=proxies, allow_redirects=allow_redirects, params=params)
        else:
            r = requests.get(url, headers=odict(headers), cookies=cookies, timeout=timeout, verify=verify,
                             proxies=proxies, allow_redirects=allow_redirects, params=params)
        r.raise_for_status()
        return r.content
def get_img ( self , url , headers = None , cookies = None , timeout = 60 , verify = False , proxies = None , allow_redirects = True , params = None ) : if self . session : r = self . session . get ( url , headers = odict ( headers ) , cookies = cookies , timeout = timeout , verify = verify , proxies = proxies , allow_redirects = allow_redirects , params = params ) else : r = requests . get ( url , headers = odict ( headers ) , cookies = cookies , timeout = timeout , verify = verify , proxies = proxies , allow_redirects = allow_redirects , params = params ) r . raise_for_status ( ) return r . content
get方式获取 img 二进制信息
        :param url: 访问Url
        :param headers: 请求头
        :param cookies: 请求cookies
        :param timeout: 超时时间
        :param verify: ssl验证
        :param proxies: 代理
        :param allow_redirects: 是否允许重定向
        :param encoding: 返回的html编码s
        :param params: 查询请求参数
        :return: 二进制图片数据