Skip to content

A dirty script aims to generate bibtex from CNKI/万方 database by paper title

Notifications You must be signed in to change notification settings

WangYihang/CNKI-Exporter

Repository files navigation

Paper Exporter

A dirty script aims to generate bibtex from CNKI/万方 database by paper title.

Install

pip install -r requirements.txt

Usage of cnki.py

  1. Put PDF file downloaded from CNKI into folder paper, each name of file is the title of the paper. eg:
$ tree ./paper
.
├── 基于Fuzzing技术的WEB应用程序漏洞挖掘技术研究.pdf
├── 基于计算机漏洞的挖掘技术研究.pdf
└── 基于静态分析技术的PHP代码自动化缺陷检测工具的研究与设计.pdf
  1. Login into CNKI, get the following cookies
  • ASP.NET_SessionId
  • SID_kns
  1. update parameter cookies of class CNKI in config.py
  2. Run python cnki.py to generate the bibtex file
  3. check the paper folder you will find .bib files eg:
@article{ YMmtfQlqkooVrfeI,
    title = {基于Fuzzing技术的WEB应用程序漏洞挖掘技术研究},
    author = {陈景峰},
    year = {2012},
    keywords = {Web应用程序漏洞,Fuzzing技术,漏洞挖掘},
    abstract = {随着Internet与Web2.0技术的快速发展...},
    journal = {北方工业大学},
}
  1. import bibtex files into any reference manager software(eg: mendeley)

Usage of wanfang.py

Follow the 1st, 4th, 5th and 6th steps of cnki.py usage, because 万方 database does not need login.

  1. Put PDF file downloaded from CNKI into folder paper, each name of file is the title of the paper. eg:
$ tree ./paper
.
├── 基于Fuzzing技术的WEB应用程序漏洞挖掘技术研究.pdf
├── 基于计算机漏洞的挖掘技术研究.pdf
└── 基于静态分析技术的PHP代码自动化缺陷检测工具的研究与设计.pdf
  1. Run python wanfang.py to generate the bibtex file
  2. check the paper folder you will find .bib files eg:
@article{ YMmtfQlqkooVrfeI,
    title = {基于Fuzzing技术的WEB应用程序漏洞挖掘技术研究},
    author = {陈景峰},
    year = {2012},
    keywords = {Web应用程序漏洞,Fuzzing技术,漏洞挖掘},
    abstract = {随着Internet与Web2.0技术的快速发展...},
    journal = {北方工业大学},
}
  1. import bibtex files into any reference manager software(eg: mendeley)

About

A dirty script aims to generate bibtex from CNKI/万方 database by paper title

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages