Giter Site home page Giter Site logo

cnki_2_bibtex's Introduction

CNKI_2_BibTeX

Converting the NoteExpress (.net) file exported by CNKI (**知网) to BibTeX (.bib) file.

将**知网导出的 NoteExpress 文献记录转换成 BibTeX 文献记录。中文 README

Downloads PyPI Actions Status codecov

Getting Started

Prerequisites

  • Python3

Installation

pip install cnki2bib

Using

Make sure it's in your PATH.

cnki2bib [OPTIONS] [INPUTFILE]

Arguments:

  • INPUTFILE:
    • The input .net file to be converted. If left blank, the contents in the clipboard will be used.

Options:

  • -c, --copy / -nc, --no-copy

    • Whether or not to copy the result to clipboard.
    • Default: True
  • -od, --outputDefault / -nod, --no-outputDefault

    • Whether or not to create a default .bib file.
    • It has the same name as the source .net file in its directory.
    • Or if the input source is clipboard, it will be 'out.bib' in current working directory.
    • Default: True
  • -o, --outputfile FILENAME

    • Create a certain output .bib file.
  • -f, --id-format [title|nameyear]

    • Choose the format of the ID of BibTeX entries.
      • The first several words (or their pinyin) in the title
      • The first author (or the pinyin) plus year.
    • Default: title
    • Once you have assigned a format, your choice will be saved in ~/.cnki2bib.cfg. It is unnecessary to type this choice since then.
  • --help

    • Show this message and exit.

Finally...

Start using BibTeX to manage the literature references.

Tricky Usage on Windows

You can find cnki2bib.exe in your Python/Scripts and set it as the default program to open the .net file.

Then when you double-click a .net file, the corresponding BibTeX Entries will be copied to your clipboard, and a .bib file would be created on the same directory.

Use the console to check for Exception if it does not work as expected, and issue is welcomed.

Export NoteExpress .net File on CNKI

FxL8Cq.png

Copy NoteExpress Entry content to the clipboard.

FxL8Cq.png

You have to enable Flash to see the "Copy to clipboard" button.

Then just run cnki2bib in the terminal. The corresponding BibTeX Entries will be copied to your clipboard, and an 'out.bib' file is created at the current directory. 😄

cnki_2_bibtex's People

Contributors

vopaaz avatar

Stargazers

Tianhao Li 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.