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可用!
- Host: GitHub
- URL: https://github.com/cmsax/cnki-converter
- Owner: cmsax
- Created: 2019-10-07T13:49:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-25T06:05:55.000Z (about 2 years ago)
- Last Synced: 2024-04-25T07:26:09.530Z (about 2 years ago)
- Topics: ci, cnki, converter, endnote, fastapi, mendeley, mendeley-tool, refman
- Language: Python
- Homepage:
- Size: 285 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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`