Retrieve and extract citations from Crossref data.
- Python 2 or 3 (Python 3 preferred)
pip install -r requirements.txt
Data is retrieved via the Crossref's Works API (doc).
Starting with the cursor *. The data/crossref-works.zip.meta file contains the next cursor to use, should the download be interrupted for any reasons (it is likely it will). The download currently takes about 90 hours at the minimum and can't be run in parallel due to the way the cursor works.
To start or resume the download run:
./download_crossref_works.sh
The file data/crossref-works.zip as well as data/crossref-works.zip.meta will be created and updated. crossref-works.zip will contain files with the raw response.
Run:
./extract_citations_from_crossref_works.sh
That will create data/crossref-works-citations.csv.gz a compressed csv file with the following columns:
- citing_doi
- cited_doi