Git Product home page Git Product logo

-nsfc's Introduction

PyPI Downloads GitHub last commit GitHub Repo stars GitHub forks

国家自然科学基金数据查询系统

安装

pip3 install nsfc

数据下载

数据库文件较大,可通过百度网盘进行下载 (下载链接 提取码: 2nw5)

  • 下载所需的数据库文件,如project.A.sqlite3, 或全部数据project.all.sqlite3
  • 保存至nsfc的安装路径下的data目录下, 如:/path/to/site-packages/nsfc/data/project.db
  • 或者保存至HOME路径下的nsfc_data目录下,如~/nsfc_data/project.db
  • 也可以通过-d参数指定要使用的数据库文件

使用示例

本地查询

# 查看帮助
nsfc query

# 列出可用的查询字段
nsfc query -K

# 输出数量
nsfc query -C

# 按批准年份查询
nsfc query -C -s approval_year 2019

# 按批准年份+学科代码(模糊)
nsfc query -C -s approval_year 2019 -s subject_code "%A%"

# 批准年份也可以是一个区间
nsfc query -C -s approval_year 2015-2019 -s subject_code "%C01%"

# 结果输出为.jl文件
nsfc query -s approval_year 2019 -s subject_code "%C0501%" -o C0501.2019.jl

# 结果输出为xlsx文件
nsfc query -s approval_year 2019 -s subject_code "%C0501%" -o C0501.2019.xlsx -F xlsx

# 限制最大输出条数
nsfc query -L 5 -s approval_year 2019                                           

结题报告下载

nsfc report 20671004

nsfc report 20671004 -o out.pdf

其他功能

LetPub数据获取

nsfc crawl

本地数据库构建/更新

nsfc build

其他说明

  • 目前基本上只有2019年之前的数据,2020年的数据很少
  • 后续有数据时会再更新

更新记录

  • [2022-01-14] version 2.0.4
    • update the urls of Official

-nsfc's People

Contributors

roronoa-dong avatar suqingdong 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.