0
点赞
收藏
分享

微信扫一扫

aiohttp 与requests 使用代理ip的设置方法

爱情锦囊 2022-03-11 阅读 61
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 条评论