Before the bitching begins, i have used the search feature but all links are down for any sources.
I am in the process of making an AdFly clicker but would like to integrate a way of getting proxies automatically (IP:PORT).
Can anybody help me with a snippet at least on scraping proxies from HMA?.
I have no experience with regex etc..
Thanks in advance.
P.S: if you help, i will give you credits where due, on the GUI and within the source.
EDIT: I found a source but it isn't working,
I am in the process of making an AdFly clicker but would like to integrate a way of getting proxies automatically (IP:PORT).
Can anybody help me with a snippet at least on scraping proxies from HMA?.
I have no experience with regex etc..
Thanks in advance.
P.S: if you help, i will give you credits where due, on the GUI and within the source.
EDIT: I found a source but it isn't working,
Code
Imports System.Text.RegularExpressions
Public Class scraper
Dim Thread1 As System.Threading.Thread
Private Sub GrabProxies()
CheckForIllegalCrossThreadCalls = False
Dim i As Integer = 1
Do Until i = NumericUpDown1.Value + 1
Dim request As System.Net.HttpWebRequest = System.Net.HttpWebRequest.Create("http://hidemyass.com/proxy-list/" + i.ToString)
Dim response As System.Net.HttpWebResponse = request.GetResponse
Dim sr As System.IO.StreamReader = New System.IO.StreamReader(response.GetResponseStream())
Dim rssourcecode As String = sr.ReadToEnd
Dim r As New System.Text.RegularExpressions.Regex("(\d{1,4}\.\d{1,4}\.\d{1,4}\.\d{1,4})</span></td>\D+(\d{1,5})</td>\D+<img src=""\S+""\D+""flag"" /> (\w+)\D+\S+\D+(\d+%)\D+\S+\D+(\d+%)""\D+<td>(\w+)\D+"">(\w+)")
Dim matches As MatchCollection = r.Matches(rssourcecode)
For Each itemcode As Match In matches
With ListView1.Items.Add("")
.SubItems.Add(itemcode.Groups(1).Value)
.SubItems.Add(itemcode.Groups(2).Value)
.SubItems.Add(itemcode.Groups(3).Value)
.SubItems.Add(itemcode.Groups(4).Value)
.SubItems.Add(itemcode.Groups(5).Value)
.SubItems.Add(itemcode.Groups(6).Value)
.SubItems.Add(itemcode.Groups(7).Value)
End With
Next
i = i + 1
Loop
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Thread1 = New System.Threading.Thread(AddressOf GrabProxies)
Thread1.Start()
End Sub


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