scrapy框架中间件配置代理import random#代理池PROXY_http = [ '106.240.254.138:80', '211.24.102.168:80',]PROXY_https =[ '218.57.146.212:8888', '139.217.24.50:3128',]class XiaohuaproDownloaderMiddleware(object): def process_request(self, request, spider): # 代理访问,配置代…