Geotargeting and session control
Adding targeting parameters
Selecting your target geolocation
curl -x http://account-accountName-pipeline-pipelineName-country-countryCode:[email protected]:7000 https://targetpage.comimport requests
proxies = {
'http': 'http://account-accountName-pipeline-pipelineName-country-countryCode:[email protected]:7000',
'https': 'https://account-accountName-pipeline-pipelineName-country-countryCode:[email protected]:7000'
}
url = 'https://ipinfo.io'
response = requests.get(url, proxies=proxies)
print(response.status_code)
print(response.text)const axios = require('axios');
const targetAddress = "http://ipinfo.io/json";
const getProxy = async () => {
return {
proxy: {
host: "account-accountName-pipeline-pipelineName-country-countryCode:[email protected]",
port: 7000
}
}
}
const run = async () => {
const res = await axios(targetAddress, getProxy());
return res.data;
}
(async () => {
var response = await run()
console.log(response);
console.log("DONE!")
})();Using sticky IPs
curl -x http://account-accountName-pipeline-pipelineName-session-randomString:[email protected]:7000 https://targetpage.comimport requests
proxies = {
'http': 'http://account-accountName-pipeline-pipelineName-session-randomString:[email protected]:7000',
'https': 'https://account-accountName-pipeline-pipelineName-session-randomString:[email protected]:7000'
}
url = 'https://ipinfo.io'
response = requests.get(url, proxies=proxies)
print(response.status_code)
print(response.text)const axios = require('axios');
const targetAddress = "http://ipinfo.io/json";
const getProxy = async () => {
return {
proxy: {
host: "account-accountName-pipeline-pipelineName-session-randomString:[email protected]",
port: 7000
}
}
}
const run = async () => {
const res = await axios(targetAddress, getProxy());
return res.data;
}
(async () => {
var response = await run()
console.log(response);
console.log("DONE!")
})();Geo-sessions: Precise location-based sessions
Combining parameters
Last updated
