Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hidemyass

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hidemyass

A library to scrap hidemyass proxies

  • 2.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Hidemyass Scrapper

Build Status

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

Setup

npm install --save hidemyass

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

Keywords

FAQs

Package last updated on 25 Dec 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc