Wrote this for this thread yesterday: https://hackforums.net/showthread.php?tid=2649418
Function:
Usage:
Edit: I just made a little function that will let you grab proxies upto (x) Pages specified by you:
Function:
PHP Code
<?php
public static string[] grabProxy(string source)
{
// Credits: Soft2050
var proxies = new List<string>();
foreach (Match m in Regex.Matches(source, @"<td><span>([\s\S]*?)(\d+)</td>"))
{
string port = m.Groups[2].Value;
string ip = m.Groups[1].Value;
ip = Regex.Replace(ip, @"(<(div|span) style=""display:none"">\d+.*?>|<.*?>)", "").Trim();
proxies.Add(string.Concat(ip, ":", port));
}
return proxies.ToArray();
}
Usage:
PHP Code
<?php
static void Main(string[] args)
{
WebClient wc = new WebClient();
string[] proxyList = grabProxy(wc.DownloadString("http://hidemyass.com/proxy-list/"));
Array.ForEach(proxyList, s => Console.WriteLine(s));
Console.ReadKey();
}
Edit: I just made a little function that will let you grab proxies upto (x) Pages specified by you:
PHP Code
<?php
public static string[] grabHMAProxies(int uptoPages)
{
// Credits: Soft2050
WebClient wc = new WebClient();
var proxies = new List<string>();
for (int i = 1; i <= uptoPages; i++)
{
proxies.AddRange(grabProxy(wc.DownloadString(string.Format("http://hidemyass.com/proxy-list/{0}", i))));
}
return proxies.ToArray();
}


![[Image: cAGPk.png]](https://i.imgur.com/cAGPk.png)