Socket
Socket
Sign inDemoInstall

hidemyass

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    hidemyass

A library to scrap hidemyass proxies


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

#Hidemyass Scrapper

This library should provide an api for www.hidemyass.com proxy list.

##Setup

npm install --save hidemyass-scrapper

##Usage ###List Proxies ####All

var hidemyass = require('hidemyass');

hidemyass
    .proxies()
    .get(got_proxies)

function got_proxies(err, proxies){
    if(err){
        return console.error(err);
    }
    console.log(proxies);
}

####Range

var hidemyass = require('hidemyass');

hidemyass
    .proxies()
    .get({start:5, end:8}, got_proxies)

function got_proxies(err, proxies){
    if(err){
        return console.error(err);
    }
    console.log(proxies);
}

###Get Proxies from specific page

var hidemyass = require('hidemyass');

hidemyass
    .proxies_page()
    .get({page: 3},got_proxies);

function got_proxies(err, proxies){
    if(err){
        return console.error(err);
    }
    console.log(proxies);
}

###Count number of active proxy pages

var hidemyass = require('hidemyass');

hidemyass
    .proxies_page()
    .countPages(got_pages);

function got_pages(err, pages){
    if(err){
        return console.error(err);
    }
    console.log(pages);
}

##Output example:

[ { updated: 1424204283,
    ip: '180.183.206.107',
    port: 3128,
    country: { name: 'Thailand', slag: 'th' },
    speed: 6802,
    connection_time: 385,
    protocol: 'http',
    anonymity: 'high',
    keep_alive: false },
  { updated: 1424204163,
    ip: '89.135.122.165',
    port: 3128,
    country: { name: 'Hungary', slag: 'hu' },
    speed: 5184,
    connection_time: 28,
    protocol: 'https',
    anonymity: 'high',
    keep_alive: true },
  { updated: 1424204042,
    ip: '190.204.255.15',
    port: 8080,
    country: { name: 'Venezuela', slag: 've' },
    speed: 7155,
    connection_time: 350,
    protocol: 'https',
    anonymity: 'high',
    keep_alive: true } ]

##Development ###Tests To run test use the following command:

npm test

###Contributions Contributions can be submitted to https://bitbucket.org/sk91/hidemyass Pull request should be mergeable and unit tested.

Keywords

FAQs

Last updated on 09 May 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc