购买套餐后如何提取IP、配置代理,快速开始使用
购买套餐后,进入「IP提取」页面:
import requests
proxies = {
'http': 'http://用户名:密码@IP:端口',
'https': 'http://用户名:密码@IP:端口'
}
response = requests.get('https://httpbin.org/ip', proxies=proxies)
print(response.json())
curl 命令行:
curl -x http://用户名:密码@IP:端口 https://httpbin.org/ip
配置完成后,访问以下地址验证IP是否切换成功:
https://httpbin.org/ip — 返回当前出口IPhttps://ipinfo.io — 显示IP的详细地理位置信息