An open API service indexing awesome lists of open source software.

https://github.com/cmsax/cnki-converter

CNKI 知网引文格式转换器(Web APP + CLI APP) 2024可用!
https://github.com/cmsax/cnki-converter

ci cnki converter endnote fastapi mendeley mendeley-tool refman

Last synced: 3 months ago
JSON representation

CNKI 知网引文格式转换器(Web APP + CLI APP) 2024可用!

Awesome Lists containing this project

README

          

# CNKI 知网引文格式转换器 (Web + CLI)

将从知网下载的 EndNote 格式的引文文件转换为 RefMan 格式的引文,可以直接导入到 Mendeley 软件(一款 macOS 上免费的引文管理工具)和其他大部分的同类软件中。

## For 用户

访问网页或者通过 CLI 运行。

### 直接访问网页

2023/2/22 持续维护。

[CNKI Converter](https://tools.unoiou.com/converter)

### CLI

到 yigesamo 文件夹,然后使用 python3 运行脚本

```bash
python3 cli.py --help
```

## For 开发者

欢迎在本项目的基础上进行开发。本项目使用 Poetry 进行项目管理,核心代码在 `yigesamo/converter.py` 中,如果 CNKI 更新了文件格式,可以在这里进行适配。

### 开发依赖

如果你对 Python 和 pip 都比较熟悉,可以直接通过项目根目录的 `requirements.txt` 文件安装所有的 Python 依赖,下面的步骤都可以跳过。

0. 参考 [Python 官网](https://www.python.org/) 安装 Python3.7 或以上版本。

1. 参考 [Poetry 官方文档](https://python-poetry.org/docs/) 安装 Poetry

```bash
python3.7 -m pip install poetry
```

2. 通过 Poetry 安装项目依赖

```bash
poetry install
```

3. 通过 Poetry 运行项目

在 `pyproject.toml` 文件中定义了项目可运行的脚本,包括:

- serve:启动一个 HTTP 服务器,运行成功后,访问:[http://localhost:5000](http://localhost:5000) 。运行方式:`poetry run serve`
- cli:通过命令行运行。运行方式:`poetry run cli`