Giter Site home page Giter Site logo

azahraoui / hidemyass-proxies-scraper-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mkbodanu4/hidemyass-proxies-scraper-php

0.0 1.0 0.0 29 KB

[SUSPENDED] Tool for scrapping fresh proxies from HideMyAss.com

License: GNU General Public License v3.0

PHP 100.00%

hidemyass-proxies-scraper-php's Introduction

[SUSPENDED] This project is suspended as for now (07/02/2017) there is no Proxy List available at site.

Official note:

This service has been suspended due changes in our infrastructure. But we'll be back with an even better version in a few months!

HMA Proxy List Scraper

Small PHP class for collecting fresh proxies from HideMyAss and filtering them based on Anonymity/Speed/Country/Sort.

Usage

Include class file in your code:

require_once 'proxylist.class.php';

create an instance of a class:

$list = new ProxyList();

and use one of functions below:

Get raw response from server

  • $list->get_raw();

Get parsed list

  • $list->get();

#Result example:

Array
(
    [0] => Array
        (
            [update] => 5secs
            [ip] => 187.160.36.212
            [port] => 40820
            [country] => Mexico
            [speed] => 85
            [time] => 91
            [type] => socks4/5
            [anon] => High +KA
        )

    [1] => Array
        (
            [update] => 5secs
            [ip] => 187.160.49.70
            [port] => 10000
            [country] => Mexico
            [speed] => 96
            [time] => 96
            [type] => socks4/5
            [anon] => High +KA
        )
)

Filters

You can use all filters that are available on original site. Filters can be applied only when creating new instance of class.

$list = new ProxyList($params);

$params array example with comments:

$params = array(
    array('ac', 'on'), //all countries [remove line below to exclude. don't forget to remove this line if at least one country excluded]
    array('c[]', 'Angola'),
    array('c[]', 'Argentina'),
    array('c[]', 'Armenia'),
    array('c[]', 'Austria'),
    array('c[]', 'Bangladesh'),
    array('c[]', 'Belgium'),
    array('c[]', 'Brazil'),
    array('c[]', 'Canada'),
    array('c[]', 'Chile'),
    array('c[]', 'China'),
    array('c[]', 'Colombia'),
    array('c[]', 'Czech+Republic'),
    array('c[]', 'Ecuador'),
    array('c[]', 'France'),
    array('c[]', 'Germany'),
    array('c[]', 'Hong+Kong'),
    array('c[]', 'India'),
    array('c[]', 'Indonesia'),
    array('c[]', 'Iran'),
    array('c[]', 'Israel'),
    array('c[]', 'Italy'),
    array('c[]', 'Kenya'),
    array('c[]', 'Korea,+Republic+of'),
    array('c[]', 'Latvia'),
    array('c[]', 'Malaysia'),
    array('c[]', 'Mexico'),
    array('c[]', 'Netherlands'),
    array('c[]', 'Netherlands+Antilles'),
    array('c[]', 'New+Zealand'),
    array('c[]', 'Norway'),
    array('c[]', 'Panama'),
    array('c[]', 'Paraguay'),
    array('c[]', 'Puerto+Rico'),
    array('c[]', 'Reunion'),
    array('c[]', 'Romania'),
    array('c[]', 'Russian+Federation'),
    array('c[]', 'Saudi+Arabia'),
    array('c[]', 'Slovenia'),
    array('c[]', 'South+Africa'),
    array('c[]', 'Spain'),
    array('c[]', 'Sweden'),
    array('c[]', 'Switzerland'),
    array('c[]', 'Taiwan'),
    array('c[]', 'Thailand'),
    array('c[]', 'Trinidad+and+Tobago'),
    array('c[]', 'Turkey'),
    array('c[]', 'United+Arab+Emirates'),
    array('c[]', 'United+Kingdom'),
    array('c[]', 'United+States'),
    array('c[]', 'Venezuela'),
    array('c[]', 'Viet+Nam'),
    array('allPorts', '1'),
    array('p', ''), //exclude this ports, comma separated string, if none - empty string
    // array('pr[]', 0), //Protocol - HTTP [remove any of lines below to exclude]
    // array('pr[]', 1), //Protocol - HTTPS
    array('pr[]', 2), //Protocol - SOCKS4/SOCKS5
    // array('a[]', 0), //Anonymity Level - None [remove any of lines below to exclude]
    // array('a[]', 1), //Anonymity Level - Low
    // array('a[]', 2), //Anonymity Level - Medium
    // array('a[]', 3), //Anonymity Level - High
    array('a[]', 4), //Anonymity Level - High + KA
    //array('pl', 'off'), //Planetlab include: "on"  Otherwise comment out
    // array('sp[]', 1), //Speed - slow [remove any of lines below to exclude]
    // array('sp[]', 2), //Speed - medium
    array('sp[]', 3), //Speed - fast
    // array('ct[]', 1), //Connection time - slow [remove any of lines below to exclude]
    // array('ct[]', 2), //Connection time - medium
    array('ct[]', 3), //Connection time - fast
    array('s', 0), //Sort by: 0 - Date tested, 1 - Response time, 2 - Connection time, 3 - Country A-Z
    array('o', 0), // Order: 0 - ASC, 1 - DESC
    array('pp', 3), //Per page: 0 - 10, 1 - 25, 2 - 50, 3 - 100
    array('sortBy', 'date') //Sort by: "date" - Date tested, "response_time" - Response time, "connection_time" - Connection time, "country" - Country A-Z
);

hidemyass-proxies-scraper-php's People

Contributors

mkbodanu4 avatar

Watchers

Abdessalam Z. avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.