dreadpixel
Banned - Selling outside marketplace
- Jul 27, 2010
- 2,502
- 1,179
The code is simple and uses basic Perl modules to crawl the given pages from a file, and prints out a list of proxies:
And you load your proxy sources like this:
Code:
#!/usr/bin/perl
# Usage: proxyScraper.pl [proxy_file]
use strict;
use warnings;
use WWW::Mechanize;
use Try::Tiny;
my $source_file=shift;
open (INPUT_FILE, "<$source_file") || die "Can't open $source_file: $!\n";
my @sources = ;
my $crawler = WWW::Mechanize->new();
foreach (@sources) {
try {
$crawler->get($_);
# hunt for IP:PORT combination
my @ips= $crawler->text() =~ /(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\:\d{1,5})/g;
foreach (@ips){
print "$_\n";
}
} catch {
warn "[!] Error, who cares\n";
}
}
And you load your proxy sources like this:
http://aliveproxy.com/fastest-proxies/
http://multiproxy.org/anon_proxy.htm
http://www.ultraproxies.com/high-anonymous.html
http://www.atomintersoft.com/high_anonymity_elite_proxy_list
http://www.proxylists.net/
http://www.ip-adress.com/proxy_list/
http://www.dailiip.com/
http://www.samair.ru/proxy/ip-address-01.htm