一个基于 Python 的高性能代理池管理系统,支持 HTTP/HTTPS/SOCKS4/SOCKS5 代理协议,具有自动验证、匿名级别检测和质量评分功能。
git clone https://github.com/yourusername/scylla.git
cd scylla
pip install -r requirements.txt
cp .env.example .env
# 编辑 .env 文件,配置数据库连接等信息
python main.py
服务将在 http://localhost:8000 启动
http://localhost:8000/api
GET /api/proxies?protocol=http&country=US&anonymity=elite&limit=10
参数:
protocol (可选): 协议类型 - http, https, socks4, socks5country (可选): 国家代码 - ISO 3166-1 alpha-2 (如: US, CN)anonymity (可选): 匿名级别 - transparent, anonymous, elitelimit (可选): 返回数量 - 默认 10,最大 100响应示例:
{
"success": true,
"count": 10,
"data": [
{
"id": 1,
"ip": "1.2.3.4",
"port": 8080,
"protocol": "http",
"country": "US",
"anonymity": "elite",
"speed": 1.23,
"success_rate": 0.85,
"quality_score": 88.5,
"url": "http://1.2.3.4:8080"
}
]
}
docker-compose up -d
docker-compose logs -f scylla
docker-compose down
docker build -t scylla:latest .
docker run -d \ --name scylla \ -p 8000:8000 \ -e DB_URL=postgresql://user:password@host:5432/scylla \ scylla:latest
本项目采用 MIT 许可证 - 详见 LICENSE 文件
Made with ❤️ by Scylla Team