Making Requests
Request based commands for Residential Proxies.
proxy.primedproxies.com:8888:{username}-cc-{country}-pool-p2p-sessionid-{randominteger}-sessiontime-{timeinseconds}:{password}import random
def generate_proxy_string(username, country, password, random_integer, time_in_minutes):
result_string = f"proxy.primedproxies.com:8888:{username}-cc-{country}-pool-p2p-sessionid-{random_integer}-sessiontime-{time_in_minutes}:{password}"
return result_string
# Example usage:
username = "your_username"
country = "us" # Replace with the actual country code in lowercase
password = "your_password"
random_integer = random.randint(10000000, 99999999) # 8-digit random integer
time_in_minutes = 30 # Replace with the predetermined time in minutes
result = generate_proxy_string(username, country, password, random_integer, time_in_minutes)
print(result)import java.util.Random;
public class ProxyStringExample {
public static void main(String[] args) {
String username = "your_username";
String country = "us"; // Replace with the actual country code in lowercase
String password = "your_password";
Random random = new Random();
int randomInteger = 10000000 + random.nextInt(90000000); // 8-digit random integer
int timeInMinutes = 30; // Replace with the predetermined time in minutes
String resultString = String.format("proxy.primedproxies.com:8888:%s-cc-%s-pool-p2p-sessionid-%d-sessiontime-%d:%s",
username, country, randomInteger, timeInMinutes, password);
System.out.println(resultString);
}
}Query parameters
Parameter
Description
proxy.primedproxies.com:8888:{username}-cc-{country}-pool-p2p:{password}username = "your_username"
country = "your_country"
password = "your_password"
result_string = f"proxy.primedproxies.com:8888:{username}-cc-{country}-pool-p2p:{password}"
print(result_string)
Replace "your_username", "your_country", and "your_password" with your actual values. This will substitute the placeholders in the string with the corresponding values of the variables.public class ProxyStringExample {
public static void main(String[] args) {
String username = "your_username";
String country = "your_country";
String password = "your_password";
String resultString = "proxy.primedproxies.com:8888:" + username + "-cc-" + country + "-pool-p2p:" + password;
System.out.println(resultString);
}
}
Replace "your_username", "your_country", and "your_password" with your actual values.Last updated