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

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

Uploaded Source

Built Distribution

nsfc-2.0.2-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nsfc-2.0.2.tar.gz
  • Upload date:
  • Size: 15.4 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.2.tar.gz
Algorithm Hash digest
SHA256 0ed1b7d1265e9c7b2d3e552f35549790773f9fa5e620ada807e6fb7ca6fdb42d
MD5 9dd0d4e2bc9707c3025433ab309ccae6
BLAKE2b-256 6463e4785c8d6ea2516e7c96ad4069a942e0990d9531cb51187cf424423af66d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: nsfc-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 18.6 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ecd058f80e77a7c16b807415f5c61de81d4341d601bb1521a7b603894dd15c52
MD5 4cec0ead6e429edb03caccfd28712ad8
BLAKE2b-256 d5e07a984c8a052ed3729cdd6b374736ee79d1b916cea9a34e7378cc29a543bd

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