完全按照老师写的代码报错twisted.web.error.SchemeNotSupported: Unsupported scheme: b''
class my_proxy(object): def process_request(self,request,spider): request.meta['proxy']='http-cla.abuyun.com:9030' proxy_name_pass=b'H211EATS905745KC:F8FFBC929EB7D5A7' encode_pass_name=base64.b64encode(proxy_name_pass) request.headers['Proxy-Authorization']='Basic '+encode_pass_name.decode()