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

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.1.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

nsfc-2.0.1-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nsfc-2.0.1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for nsfc-2.0.1.tar.gz
Algorithm Hash digest
SHA256 10e457bae277aa9c844764770f043cc59ef505e1f976c733d3617c2373d8ded8
MD5 c99da76a967405328237f76135ff8eec
BLAKE2b-256 c3d15c76ae2ac20c776455adb834366b604e2f7af94511e0dc5f58fdbbb6715a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nsfc-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.25.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.8

File hashes

Hashes for nsfc-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ce76dfccc1cea46e7d1c0c217c9045fbaa319c45f039cbf687c8cbe82c1d21fe
MD5 9fc0e6790d3d483f4059a3eff7de6197
BLAKE2b-256 548566f7805f65c6d99d2cb1b96833b72c209362ed51624f57e2e617fa254e4c

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