mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 11:29:38 +08:00
web端
注意:源代码中包含Google Analytics分析代码,index.html, search.html和resource.html。如果自己使用,要记得去除哦
requirements
- tornado
- mongodb
- pymongo
导入数据
方法1: 自己迁移数据
- 下载MySQL的数据
- 导入数据到MySQL
- 运行
python prepare/convert_db.py
方法2:使用我的导出
参考 这里
运行
python server.py
Docker
参考这里
MongoDB index
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();