scc-cookie-pool 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
scc-cookie-pool 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
scc-cookie-pool 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 GPL
开发语言 Python 查看源码 »
操作系统 跨平台
软件类型 开源软件
所属分类 Web应用开发
开源组织
地区 国产
投 递 者 尚浩宇
适用人群 未知
收录时间 2019-05-28

软件简介

基于 Python 和 Redis 的 Cookie 池:scc-cookie-pool

主要应对场景是cookie由另外独立机制单独生成,不需要自动生成的场景。

依赖环境如下

python>=3.0
requests>=2.13.0
redis>=2.10.5
Flask>=0.12.1

0环境初始化脚本

chmod +x install.sh
sh install.sh

配置

[uwsgi]
http = :8080
wsgi-file = run.py
callable = app
processes = 2
threads = 50
master = true
pidfile = coopool.pid

运行

开发环境:python3 run.py
生产环境:uwsgi -d --ini coopool.ini

接口

restfull接口,响应格式如下:

{
"status":"1",
"msg":"成功",
"data":1
}


status:状态1成功0失败
msg:状态说明
data:响应数据,根据不同接口数据类型不同

注册

POST http://host:port/<website>/register
参数:

{
"validate_url":"http://host:port/index",
"alert_email":"a@c.com.b@d.com"
}

添加

POST http://host:port/<website>/add
参数:

{
"cookie":"_ga=GA1.2.2068545466.1534464283; xn_dvid_kf_20049=2FB1BB-5425381E-C994-6182-6357-5EC6070D830D; JSESSIONID=node01pvm6qovnp0o0126xk4nvddbm7384.node0"
}

获取

GET http://host:port/<website>/random

统计

GET http://host:port/<website>/count

展开阅读全文

代码

的 Gitee 指数为
超过 的项目

评论

点击引领话题📣 发布并加入讨论🔥
暂无内容
发表了博客
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
发表了问答
{{o.pubDate | formatDate}}

{{formatAllHtml(o.title)}}

{{parseInt(o.replyCount) | bigNumberTransform}}
{{parseInt(o.viewCount) | bigNumberTransform}}
没有更多内容
暂无内容
暂无内容
0 评论
3 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部