location - 如果您需要指定IP地址,可以在此處填寫區域代碼,點擊 此處 查看所有區域代碼;
以python為例,如果您要設置您的IP定位為美國,您可以參考以下的代碼:
import requests
# 參數設置為對應的子賬戶、密碼、位置信息
proxyip = "http://username:password-location=US@ahk.luckdata.io:58990"
# 目標API地址,此處為https://api.ip.cc,運行後會打印您的IP地址信息
url = "https://api.ip.cc"
proxies = {
'https': proxyip,
'https': proxyip,
}
# 使用代理發送GET請求
response = requests.get(url=url, proxies=proxies)
# 打印響應內容
print(response.text)