Proxypool
This project provides a http proxy pool for use when you want a http proxy server.
Install / Use
/learn @wenson/ProxypoolREADME
目的
解决抓取站点对访问频率的限制问题,通过匿名代理访问目标站点。
功能
通过一个 HTTP API 提供匿名代理列表。
配置
1、安装项目的依赖 与 python 相关的依赖 (注意该项目使用 python3.3):
$ pip3 install -r requirements.txt
此外系统中还需要安装 redis-server。
2、获取验证代理 在项目根目录下,执行:
$ python3.3 proxypool.py
3、配置 nginx 一个简单的 nginx.conf 形式:
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
upstream frontends {
server 127.0.0.1:8000;
server 127.0.0.1:8001;
server 127.0.0.1:8002;
server 127.0.0.1:8003;
server 127.0.0.1:8004;
}
server {
listen 9000;
server_name localhost;
location / {
proxy_pass http://frontends;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
}
启动 nginx:
# nginx -t
# nginx &
4、启动 handler
在该项目目录下,运行:
$ cd handlers
$ python3.3 handler_800* &
5、测试 在 chrome 中下载 Postman 插件,然后通过 POST 方法请求 http://127.0.0.1:9000/proxylist 来查看返回结果。
其他文档
1、API 使用文档
2、项目设计文档
问题反馈
可随时向我 (zhangyifei@baixing.com) 反馈使用该项目过程中遇到的问题。
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
