Skip to main content

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

Project description

Downloads GitHub last commit GitHub Repo stars

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

安装

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年的数据很少
  • 后续有数据时会再更新

更新记录

  • [2021-11-10] version 2.0.3
    • update base_url of Official
    • update url of Official.get_conclusion_data

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nsfc-2.0.3.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

nsfc-2.0.3-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file nsfc-2.0.3.tar.gz.

File metadata

  • Download URL: nsfc-2.0.3.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3

File hashes

Hashes for nsfc-2.0.3.tar.gz
Algorithm Hash digest
SHA256 da0408d7179b10f967172e2321cfc6d6ff1cf7e432a1302f91dd8be8c84b6bd9
MD5 752a313131f6c5671d2dfd2ae26a90f8
BLAKE2b-256 1e264fcc56a6993f901380bacaf0148754c7b1ec9214b91580f33ca150eab694

See more details on using hashes here.

File details

Details for the file nsfc-2.0.3-py3-none-any.whl.

File metadata

  • Download URL: nsfc-2.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.8.3

File hashes

Hashes for nsfc-2.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 912798cff2454e560d46f3d702ca3fdbf9af12b74a1034a676db0049c67c7ca0
MD5 347c3162bc9e2d50ed38c6a181bafd6d
BLAKE2b-256 fb51defc233ff5f0ced70f9b0599b388dbf17b12c3ac5b2d0ca1c76d0deaf5c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page