Coder Social home page Coder Social logo

xdoer / httpproxy Goto Github PK

View Code? Open in Web Editor NEW
10.0 1.0 2.0 65 KB

检测可用的HTTP代理,提供API,Http代理池

Home Page: https://luckyhh.github.io/HttpProxy/src/index.html

License: Other

JavaScript 77.90% HTML 22.10%
http-proxy xi-ci-dai-li freeproxylist

httpproxy's Introduction

Http代理检测

配抓取并过滤可用的西刺代理和FreeProxyList免费代理地址

注意

demo地址貌似需要翻墙

特性

  • 简单高效
  • 结果准确

数据源

FreeProxyList

西刺代理

神鸡代理

快代理

89免费代理

云代理

检测原理

将代理配置到请求中,检查返回结果是否与预期结果一致

本地测试

1、安装Node.js,MongoDB,Git

2、下载安装本项目

git clone https://github.com/LuckyHH/HttpProxy.git
npm install

3、修改配置文件src/config/index.js数据库配置项

4、启动项目

npm start

5、浏览器打开localhost:3000即可

注意1:如果要修改端口的话,在配置文件中改完之后,需要将前端面板文件src/index.html中的端口也改掉,否则前后端不能通信

注意2:如果点击检测按钮后,没有查出可用代理,请切换检测源

API

返回有效的代理地址,测试代理默认响应时间500毫秒,数据源默认西刺代理

http://localhost:3000/api

或者手动指定测试响应时间

http://localhost:3000/api?t=1000

指定响应数据源

http://localhost:3000/api?t=5000&s=chick

t参数为超时值,数值越小,检测到的代理质量越好,代理越少。数值越大,检测到的代理质量越差,代理越多 s参数为xici、freeproxylist、quick、 chick、 _89ip、 _3366ip

在线实例

https://proxys.herokuapp.com

注意:以上地址为预览地址,不可直接将API构造到正式应用中。若由此带来损失,由你个人承担。

版本更新

2.0.0/2019-02-17

添加数据库存储爬虫得到的代理

前端面板删除了Vue框架,只保留了必须的socket.io

前端采用WebSocket协议与后端通信,可以实时看到每隔代理的检测结果

后端删除了koa Web框架,路由使用原生Node.js编写,保持应用轻量

1.0.0/2018-06-30

第一版发布

其他

当检测代理没有返回数据时,请首先检查主机能否访问到源网站。

httpproxy's People

Contributors

xdoer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

torns udbmnm

httpproxy's Issues

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.