mirror of
https://github.com/tgbot-collection/YYeTsBot.git
synced 2025-11-25 03:15:05 +08:00
741 B
741 B
web端
注意:源代码中包含Google Analytics分析代码,index.html, search.html和resource.html。如果自己使用,要记得去除哦
requirements
- tornado
- mongodb
- pymongo
导入数据
从 这里 下载mongodb数据,然后导入
mongorestore --gzip --archive=yyets_mongo.gz
运行
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();