Proxy Integration
curl -k -x username:[email protected]:5959 "[example.site.com]"import requests
proxies = {
"http": "http://username:[email protected]:5959",
"https": "http://username:[email protected]:5959"
}
response = requests.get("[target_url]", proxies=proxies, verify=False)
print(response.text)import fetch from 'node-fetch';
import { HttpsProxyAgent } from 'https-proxy-agent';
const username = 'USERNAME';
const password = 'PASSWORD';
const url = 'YOUR_URL';
const agent = new HttpsProxyAgent(`http://${username}:${password}@unblocker.netnut.io:5959`);
// We recommend accepting our certificate instead of allowing insecure (http) traffic
process.env['NODE_TLS_REJECT_UNAUTHORIZED'] = '0';
const headers = {
'x-netnut-geo-location': 'us', // change according to your needs
'x-netnut-html-render': 'false' // change according to your needs
}
async function fetchLocation() {
const response = await fetch(url, {
method: 'GET',
headers: headers,
agent: agent
});
const data = await response.text();
console.log(data);
}
fetchLocation();Last updated
