https://github.com/yieldcurvemonkey/pchecker
Proxy Checker API
https://github.com/yieldcurvemonkey/pchecker
Last synced: 3 months ago
JSON representation
Proxy Checker API
- Host: GitHub
- URL: https://github.com/yieldcurvemonkey/pchecker
- Owner: yieldcurvemonkey
- Created: 2023-01-12T02:03:35.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-30T05:03:52.000Z (almost 2 years ago)
- Last Synced: 2025-02-13T20:17:11.455Z (4 months ago)
- Language: TypeScript
- Size: 621 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PChecker
## Proxy Validation API## Example Usage:
```Typescript
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'
}
```