(动态住宅)
生成代理
请求方法
代理地址: gate2.ipweb.cc
端口: 9500
账号: account-US_texas-30
密码: 123456789
curl -x http://gate2.ipweb.cc:9500
--proxy-user account-US_texas-30:123456789
https://www.instagram.com
import requests
def fetch_url(url, proxy):
try:
response = requests.get(url, proxies=proxy)
response.raise_for_status()
return response.text
except requests.exceptions.RequestException as e:
return f"Error: {e}"
proxy_config = {
'http': 'http://account-US_texas-30:123456789@gate2.ipweb.cc:9500'
}
url = 'http://example.com'
print(fetch_url(url, proxy_config))
import fetch from 'node-fetch';
import createHttpsProxyAgent from 'https-proxy-agent'
const username = 'account-US_texas-30';
const password = '123456789';
const proxy = 'gate2.ipweb.cc:9500'
const agent = createHttpsProxyAgent(
`http://${username}:${password}@${proxy}`
);
const response = await fetch('https://ip.oxylabs.io/location', {
method: 'get',
agent: agent,
});
console.log(await response.text());