Z
Zeczero
Guest
I'd like to know how to do a loop check if a given list of proxy is alive without specifying the port as it is easier done in python for example
list = open("files/proxies.txt", "r").readlines()
while(True):
try:
proxy = {"https": "{}".format(random.choice(list).rstrip())}
if(len(proxy['https']) <= 1):
continue
ret = requests.get("Google", proxies=proxy, timeout=2)
I'd like to know how to do a loop check if a given list of proxy is alive without specifying the port as it is easier done in python for example
public bool GetProxy()
{
var proxies = File.ReadLines("../../proxies.txt").ToList();
while (true)
{
try
{
}
}
}
but I have no clue how to loop throughout the entire proxy list, I found it easier to code it in python instead of C# so I'd love to see this kind of facility in C#.
Continue reading...
list = open("files/proxies.txt", "r").readlines()
while(True):
try:
proxy = {"https": "{}".format(random.choice(list).rstrip())}
if(len(proxy['https']) <= 1):
continue
ret = requests.get("Google", proxies=proxy, timeout=2)
I'd like to know how to do a loop check if a given list of proxy is alive without specifying the port as it is easier done in python for example
public bool GetProxy()
{
var proxies = File.ReadLines("../../proxies.txt").ToList();
while (true)
{
try
{
}
}
}
but I have no clue how to loop throughout the entire proxy list, I found it easier to code it in python instead of C# so I'd love to see this kind of facility in C#.
Continue reading...