YYeTsBot Documentation

人人影视 机器人和网站,包含人人影视全部资源以及众多网友的网盘分享

16,287 stars Python Python 1 file · ~931 tokens #bot#movies#telegram-bot#tv-shows#yyets#zimuxia
RAW Doc

Docker & Self-Hosted Deployment Verified OCI

Deploy YYeTsBot on any server, homelab, or cloud container platform.

1-Click Terminal Command
bash (docker run)
docker run -d --name yyetsbot -p 27017:27017 --restart always bennythink/yyetsbot
Configured Services & Ports
⚙️ redis
image: redis:7-alpine
⚙️ mongo
image: mongo:6
🔌 Ports: 127.0.0.1:27017:27017
⚙️ meili
image: getmeili/meilisearch:v1.0.2
⚙️ mysql
image: ubuntu/mysql:8.0-22.04_beta
⚙️ bot
image: bennythink/yyetsbot
⚙️ web
image: bennythink/yyetsbot
🔌 Ports: 127.0.0.1:8888:8888, 172.17.0.1:8888:8888
docker-compose.yml
yaml (docker-compose.yml)
version: '3.1'

services:
  redis:
    image: redis:7-alpine
    restart: always
    logging:
      driver: none

  mongo:
    image: mongo:6
    restart: always
    volumes:
      - ./mongo_data/mongodb:/data/db
    command: --quiet
    logging:
      driver: none
    ports:
      - "127.0.0.1:27017:27017"

  meili:
    image: getmeili/meilisearch:v1.0.2
    restart: always
    environment:
      - MEILI_HTTP_PAYLOAD_SIZE_LIMIT=1073741824 #1GiB
    volumes:
      - meilisearch_data:/meili_data

  mysql:
    image: ubuntu/mysql:8.0-22.04_beta
    restart: unless-stopped
    environment:
      MYSQL_ROOT_PASSWORD: 'root'
    logging:
      driver: none
    command: "--skip-log-bin --default-authentication-plugin=mysql_native_password"

  bot:
    image: bennythink/yyetsbot
    depends_on:
      - redis
      - mongo
    restart: always
    env_file:
      - env/yyets.env

  web:
    image: bennythink/yyetsbot
    restart: always
    env_file:
      - env/yyets.env
    depends_on:
      - mongo
      - redis
      - mysql
    working_dir: /YYeTsBot/yyetsweb/
    volumes:
      - ./subtitle_data:/YYeTsBot/yyetsweb/subtitle_data
    command: [ "python3","server.py","-h=0.0.0.0" ]
    ports:
      - "127.0.0.1:8888:8888"
      - "172.17.0.1:8888:8888"


volumes:
  meilisearch_data:

Technical Documentation: tgbot-collection/YYeTsBot

ℹ️ Provenance: Multi-Tier Ingestion · CodeWiki Reference

Overview (`README.md`)

[[# YYeTsBot


在线使用

本站通过广告和联盟推广维持服务器与维护成本,部分内容可能包含对应链接。

功能

  • 支持影视资源搜索
  • 支持网友分享链接
  • 支持收藏
  • 支持评论与失效资源标记
  • 支持 Telegram Bot
  • 支持 Docker 自部署

截图

bot

资源分享站截图

本网站永久免费,并且没有任何限制。

支持收藏功能,会跨设备同步

前端

👉 前端在这里 👈

支持作者

如果这个项目帮到了你,可以考虑支持作者:

免责声明

本项目仅用于技术学习和信息索引,不存储、不上传、不分发任何视频文件。
评论中的链接由用户自行发布,项目作者不对第三方内容负责。
如有侵权,请联系删除。

License

MIT


Overview (`yyetsweb/README.md`)

web端

注意:源代码中包含Google Analytics分析代码,index.html, search.html和resource.html。如果自己使用,要记得去除哦

requirements

  • tornado
  • mongodb
  • pymongo

导入数据

从 这里 下载mongodb数据,然后导入

shell
mongorestore --gzip --archive=yyets_mongo.gz --nsFrom "share.*" --nsTo "zimuzu.*"

运行

python server.py

Docker

参考这里

MongoDB index

shell
use zimuzu;

db.getCollection('yyets').createIndex({"data.info.id": 1});
db.getCollection('yyets').createIndex({"data.info.views" : -1});
db.getCollection('yyets').createIndex({"data.info.area" : 1});
db.getCollection('yyets').getIndexes();

db.getCollection('douban').createIndex({"resourceId" : 1});
db.getCollection('douban').getIndexes();

db.getCollection('users').createIndex({"username" : 1}, { unique: true });
db.getCollection('users').createIndex(
   { "email.address": 1 },
   { unique: true, partialFilterExpression: { "email.address": { $exists: true } } }
)
db.getCollection('users').getIndexes();

db.getCollection('comment').createIndex({"resource_id" : 1});
db.getCollection('comment').getIndexes();

db.getCollection('reactions').createIndex({"comment_id" : 1});
db.getCollection('reactions').getIndexes();

db.getCollection('metrics').createIndex({"date" : 1});
db.getCollection('metrics').getIndexes();

db.getCollection('notification').createIndex({"username" : 1});
db.getCollection('notification').getIndexes();

Overview (`yyets/BagAndDrag/README.md`)

BagAndDrag

Bag and Drag

original repo

打包带走:-)


Overview (`yyets/worker/README.md`)

Cloudflare Worker部署方式

This worker is deprecated. No further updates from now on.

1. 安装wrangler等工具

Cloudflare Docs

2. 导入数据到MySQL

3. 生成KV数据

参考 BagAndDrag/cfkv.py

4. 导入数据

shell
cd kv_data
bash bulk.sh

注意,Cloudflare KV免费版有每日1000条写入的限制

4. 配置代码

  • 修改worker/public/js/search.js中的baseURL为你的URL
  • 如绑定自定义域名,还需要修改worker/workers-site/index.js中的Access-Control-Allow-Origin为你的域名

5. 发布到Worker Site

配置 wrangler.toml,修改account_id, kv_namespaces等,然后:

shell
wrangler publish

就可以了。


--- METRICS ---