Jump to content

Parsing WebPages For Proxies ( IP:PORT )..??


Recommended Posts

How could I parse this webpage http://proxy-heaven.blogspot.com for proxies..??

I know how to get the webpage source code, I just don't really know of any great way to parse the source data for "IP:Port"

is there some kinda function or something that can collect a string if it matches something like "XXX.XXX.XXX.XXX:XXXXX"

where the "X" stands for a wild card for any number between 0-9....??

Anybody have any good ideas on how to go about doing something like this..??

Link to comment
Share on other sites

#include <Array.au3>

Local $sText = "0ke30ke :oo: 123.123.123.1234:4-4l-4 30.90.60.90:12234"
Local $avMatches = StringRegExp($sText, "((?>(?:[01]?\d?\d|25[0-5]|2[0-4]\d)\.){3}(?:[01]?\d?\d|25[0-5]|2[0-4]\d)):(\d{1,5})", 3)

If IsArray($avMatches) Then _ArrayDisplay($avMatches)

Edit: Meh...

Thanks Authenticity,

It seems to work good, but why does the port get put onto a diff array line..??

how can I extract the "IP:PORT" so its all on one array line like:

123.123.123.123:1080

123.123.123.123:1080

123.123.123.123:1080

123.123.123.123:1080

Link to comment
Share on other sites

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...