aiohttp 与requests 使用代理ip的设置方法
ip = 'HTTP://121.232.148.17:9000'async with await session.get(url2, headers=self.headers, proxy=ip, timeout=5) as resp2:ip= '{'HTTP': '183.247.199.111:30001'}'response = requests.get(url, headers=head
·
ip = 'HTTP://121.232.148.17:9000'
async with await session.get(url2, headers=self.headers, proxy=ip, timeout=5) as resp2:
ip= '{'HTTP': '183.247.199.111:30001'}'
response = requests.get(url, headers=headers, proxies=ip)
更多推荐
所有评论(0)