Coder Social home page Coder Social logo

export-nideriji's Introduction

export-nideriji

Node.js CI

导出 你的日记 APP 日记数据(你的日记数据来源于 Oh 生活

因为「你的日记」开发不是很活跃,且经常出现无法连接等 BUG,而本身也未提供导出功能,所以我写了该工具用于迁移至其他日记软件。
此外因为我之后选择的是「一本日记」,所以也可以转换为「一本日记」的数据格式用于导入。
我自己也已经成功迁移,所以该项目不会再维护,但如果你也有此需要,也希望能对你有所帮助。

相关文章 - 导出「你的日记」与导入「一本日记」

功能

你的日记

  • 导出 你的日记 数据
  • 导入 你的日记 数据

Other

  • 转换成 一本日记 数据格式

格式

使用方法

下载

  • 方法一:直接下载 Download zip
  • 方法二:使用 git clone

如果您没有 git , 还须先下载安装 git

git clone https://github.com/YunYouJun/export-nideriji.git

安装

须安装 Node.js

# Install 安装依赖包
npm install
# yarn

命令

# Export 导出你的日记
npm start
# yarn start

# Import 导入你的日记
npm run import
# yarn run import

导出文件位于 logs 目录中,nideriji.json你的日记的原始数据,1diary/source.json 为一本日记的导入格式。

配置

.env.example 中填写正确的邮箱和密码,并重命名为 .env

Parameter Description Default
CSRF_MIDDLEWARE_TOKEN CSRF TOKEN 防止跨站点伪造请求 YYCRw31cBrt3MW8cS6BbWsaESks1n0s1
EMAIL 邮箱 -
PASSWORD 密码 -
TOTAL 导出数量(不填或 0 代表全部导出) -

所需时间几十秒到几分钟不等。

CSRF_MIDDLEWARE_TOKEN 可能会有所变动,你可以前往 https://nideriji.cn/login/ F12 或在登陆窗口附近右键检查元素以查看 csrfmiddlewaretoken 的值。

导出至一本日记

如需导出至「一本日记」的格式,运行如下命令

# 转为一本日记 JSON 格式(须已存在导出文件)
npm run to:1diary
# yarn to:diary

用转换格式后所得的 source.json 替换 example 文件夹内 1diary_backup_all 压缩文件内部的同名文件 source.json, 再用该压缩文件作为导入即可。

NIDERIJI API

你的日记 API DOC - Postman

export-nideriji's People

Contributors

deng-cc avatar xx2211 avatar yunyoujun avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.