Proxy Integration
To make a request using Website Unblocker, you can typically use cURL, following the basic command structure.
cURL example:
curl -k -x username:[email protected]:5959 "[example.site.com]"-x: Specifies the proxy server. Replace username:password with your credentials unblocker.netnut.io:5959-k: This option allows cURL to make insecure connections, it is necessary and obligatory when using the services[example.site.com]: The URL of the site you wish to scrape
As well, you may use the Website Unblocker in other programming languages
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
