Files
YYeTsBot/yyetsweb
2021-06-22 20:01:10 +08:00
..
2021-06-15 14:34:52 +08:00
2021-06-22 20:01:10 +08:00
2021-06-12 16:21:08 +08:00
2021-06-22 20:01:10 +08:00
2021-06-22 20:01:10 +08:00
2021-06-17 12:38:13 +08:00

web端

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

requirements

  • tornado
  • mongodb
  • pymongo

导入数据

方法1: 自己迁移数据

  1. 下载MySQL的数据
  2. 导入数据到MySQL
  3. 运行 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();