Giter VIP home page Giter VIP logo

pchecker's Introduction

PChecker

Proxy Validation API

Example Usage:

const proxyOptions = {
  host: "122.147.138.136",
  port: "8118",
  timeout: "10000",
  publicIPAddress: "64.189.16.65",
  sitesToCheck: [
    "https://google.com",
    "https://finance.yahoo",
    "https://www.google.com/finance",
  ],
  runProxyLocation: true,
} as PCheckerOptions;

const p1 = new PChecker.PChecker(proxyOptions);

let check1: ProxyInfoEssential = await p1.checkEssential();
console.log(check1);

Output

[2023-07-30T05:00:20.484Z] info: https connncted
[2023-07-30T05:00:21.023Z] info: https://google.com check status code: 400
[2023-07-30T05:00:21.027Z] info: https://google.com Response Time: 768
[2023-07-30T05:00:21.028Z] info: HTTP Request Socket Closed (https://google.com)
[2023-07-30T05:00:21.219Z] info: https://finance.yahoo check status code: 400
[2023-07-30T05:00:21.220Z] info: https://finance.yahoo Response Time: 959
[2023-07-30T05:00:21.221Z] info: HTTP Request Socket Closed (https://finance.yahoo)
[2023-07-30T05:00:21.228Z] info: checkProxyHTTPS statusCode: 200
[2023-07-30T05:00:21.229Z] info: HTTPS Socket Closed
[2023-07-30T05:00:21.231Z] info: https://www.google.com/finance check status code: 400
[2023-07-30T05:00:21.232Z] info: https://www.google.com/finance Response Time: 970
[2023-07-30T05:00:21.232Z] info: HTTP Request Socket Closed (https://www.google.com/finance)
[2023-07-30T05:00:21.818Z] info: HTTP Request Object Closed (GET_LOCATION)
[2023-07-30T05:00:21.822Z] info: getProxyLocation response time: 1559 ms
[2023-07-30T05:00:21.846Z] info: checkProxyAnonymity status code: 200
[2023-07-30T05:00:21.849Z] info: checkProxyAnonymity network response: 1587
[2023-07-30T05:00:21.851Z] info: pj res: {"host":"198.58.101.166:6969","user-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246","connection":"keep-alive","addr":"122.147.138.136","port":52890,"scheme":"http","method":"GET","time":1690693221012,"duration":"2.6222049999999997ms"}

{
  google_support: false,
  financeyahoo_support: false,
  googlefinance_support: false,
  anonymity: 'Elite',
  checkAnonymityTime: 1591,
  httpConnectRes: 967,
  https: true,
  countryCode: 'TW',
  proxyString: '122.147.138.136:8118'
}

pchecker's People

Contributors

cleeclee123 avatar

Stargazers

 avatar Roman avatar

Watchers

 avatar

pchecker's Issues

Server KPIs Integration

Track specific proxy server metrics:

  • uptime (calculated by us)
  • average ping response (calculated by us)
  • count (how many times that host:port has been checked with PChecker)
  • more

Performance Stuff

https://sematext.com/blog/nodejs-memory-leaks/#:~:text=In%20simple%20terms%2C%20a%20Node,it%20runs%20out%20of%20memory.

memory stuff:

  • test that destroy() actually works properly and removes all timeouts
  • removing all listeners
  • checkHTTPSSupport Lexical scoping/closures design
    • holds a reference to this.socket_ in the heap,
    • make sure that this.socket_ is freed properly

Performance stuff:

  • checkHTTPSSupport() may run for the entire timeout, this is too slow
  • find faster way to prove that proxy doesn't support HTTPS instead of just waiting for timeout

Server Features

Add new Routes (Separating PChecker check method):

  • Check Ping
  • Check HTTPs (encryption)
  • Check Proxy Server
    • Anonymity Check
    • Cause Analysis
  • Get Location

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.