服务端爬虫 T4
基于Python 3
创建镜像:
docker image build -t tv:latest .
运行容器:
docker run --name TV --net="host" -v /opt/TV(源码所在目录):/TV tv:latest gunicorn -w 4 -b 0.0.0.0:8080 app:app
脚本安装、更新:
注意:需要提前安装unzip。openwrt:opkg update && opkg install unzip。ubuntu、debian:apt-get update && apt-get install unzip。其他系统自行百度。
下载T4update.sh脚本到任意目录,赋予执行权限。如果有需要自定义内容,请进入脚本在响应位置自行修改。
运行脚本,完成安装。
一键安装命令:
wget --no-check-certificate -qO- "https://raw.githubusercontent.com/sec-an/TV_Spider/main/T4update.sh" -O '/tmp/T4update.sh' && chmod +x /tmp/T4update.sh && bash /tmp/T4update.sh && rm /tmp/T4update.sh
Tag | Name |
---|---|
bdys01 |
哔滴影视 |
bttwoo |
两个BT |
cokemv |
COKEMV影视 |
czspp |
厂长资源 |
ddys |
低端影视 |
dy555 |
555电影 |
gitcafe |
小纸条 |
libvio |
LIBVIO影视 |
onelist |
Onelist |
smdyy |
神马影院 |
voflix |
VOFLIX HD |
yiso |
易搜-网盘搜索 |
zhaoziyuan |
找资源 |
{
"key":"t4test",
"name":"T4测试",
"type":4,
// 参数sites可筛选站点,tag用,隔开,不加或sites=all为搜索所有支持的站点
// 参数ali_token提供阿里系的搜索播放功能(非必须)
// 参数timeout提供聚合搜索限时返回结果功能,超时数据不再等待,默认5秒
"api":"http://127.0.0.1:8080/vod?sites=all&ali_token=3xx9cfxxxx509bxx&timeout=5",
// "api":"http://127.0.0.1:8080/vod",
// "api":"http://127.0.0.1:8080/vod?sites=czspp,yiso",
// "api":"http://127.0.0.1:8080/vod?ali_token=3xx9cfxxxx509bxx",
"searchable":1,
"quickSearch":1,
"filterable":0
}
pip install -r requirements.txt
gunicorn -w 4 -b 0.0.0.0:8080 app:app
- 部分爬虫代码参考自Tangsan99999 / TvJar