Inspire-HEP API is a RESTful API for HEP literature. This repo is a collection of scripts to interact with the API.
Fetch citations and self-excluded citations for each article listed in mypub.py
, create bibtex file mypub.bib
, and create a csv files with columns of texkeys, arxiv_eprints, preprint_date, citation_count, citation_count_without_self_citations, doi, title
.
- write down the HEP Inspire-ID in
mypub.py
- run
python update.py -w 4 --mode u
It will produce two filesmypub.bib
andmypub.csv
.
python get_bib.py test_bib.txt
python get_citation_count.py publications/mypub.csv