• Stars
    star
    157
  • Rank 238,399 (Top 5 %)
  • Language
    Python
  • License
    Other
  • Created about 5 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

国家自然科学基金查询

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

More Repositories

1

sparkapi

讯飞星火认知大模型API - Python SDK
Python
50
star
2

scihub

PDF Downloader with SCI-HUB
Python
39
star
3

pypubmed

Toolkits for NCBI Pubmed
Python
25
star
4

omim

omim database
Python
24
star
5

impact_factor

最新SCI期刊影响因子查询系统
Python
24
star
6

googletranslatepy

Google Translate Client with `deep-translator`
Python
20
star
7

sci_palettes

sci palettes for matplotlib/seaborn
Python
9
star
8

pubmed2

NCBI PubMed Crawler
Python
6
star
9

bam2html

Generate Highlighted HTML of Bam
HTML
5
star
10

kegg_viewer

Generate Highlighted SVG/PNG for KEGG Pathway
Python
4
star
11

pubmed_xml

PubMed XML Parser
Python
4
star
12

docx_parser

Parse all contents of a docx file with python-docx
Julia
3
star
13

europe_pmc

Open Access PDF Downloader with EuropePMC
Python
2
star
14

disease_ontology

Toolkits for DiseaseOntology
Python
2
star
15

compare_sequences

Python
2
star
16

drf_sse

SSE(Server-Sent Events) for DjangoRestFramework
Python
1
star
17

useEventSource

A custom React hook for managing Server-Sent Events (SSE) connections in React applications.
TypeScript
1
star
18

mailkit

Python
1
star
19

go_trace

Python
1
star
20

share_sv

Python
1
star
21

simple-googletrans

Python
1
star
22

pyannovar

Shell
1
star
23

img2svg

Convert an image to an SVG format with interactive elements
Python
1
star
24

Sources

Read the Docs
JavaScript
1
star
25

django_rest_crypto

Crypto Middleware for DjangoRestFramework
Python
1
star
26

medlineplus

Genetics Home Reference from MedlinePlus
Python
1
star
27

lims

python scripts to operate lims system
Python
1
star
28

FastMitoAssembler

Fast Assembler Workflow for MitoGenome
Python
1
star