Dear Neurostars,
I know that this question is not a neuro question and I already feel bad about breaking this rule. I already posted this question stackoverflow, but I haven’t got any replies. Since most of you are researchers that have dealt with scientific publications, DOIS, etc., your basically my last hope solving this problem.
I have the titles, author names, and years of publication for around 100 scientific papers. My aim is to get the DOI for each of those papers. My idea was to use the crossref api and the crossrefapi package. Unfortunately, I can’t get that to work.
Here’s an example, where I would like to get the DOI for the paper called ‘Cortical and subcortical gray matter abnormalities in schizophrenia determined through structural magnetic resonance imaging with optimized volumetric voxel-based morphometry’. The author’s name is Ananth and the paper was published in 2002:
import numpy as np
import pandas as pd
from crossref.restful import Works
works = Works()
author = 'Ananth'
paper_title = 'Cortical and subcortical gray matter abnormalities in schizophrenia determined through structural magnetic resonance imaging with optimized volumetric voxel-based morphometry.'
w = works.query(author=author).query(container_title=paper_title).filter(from_online_pub_date='2002',until_online_pub_date='2002')
w_size = w.count()
paper_list = np.empty(shape=(w_size,1),dtype=object)
for idx,item in enumerate(w):
if 'title' in item:
paper_list[idx] = item['title']
else:
paper_list[idx] = 'NaN'
for title in paper_list:
print(title)
This gives me the following output:
['Pregnancy outcomes in women treated with elective versus ultrasound-indicated cervical cerclage']
['Revisiting sonographic abdominal circumference measurements: a comparison of outer centiles with established nomograms']
['Cervical length and spontaneous prematurity: laying the foundation for future interventional randomized trials for the short cervix']
['A comparison of sonographic cervical parameters in predicting spontaneous preterm birth in high-risk singleton gestations']
['Algebraic Techniques for Analysis of Large Discrete-Valued Datasets']
All of these papers have one author called Ananth, but the titles are not related at all and some of these papers also are not from 2002.
Does someone know how to do fix this?
If I just use the GUI from crossref and type in the title, the first entry in the output is the correct paper. I thought, that the crossref api would work similarly.
I read this post, but I would like to have an automated version using an api, so that you don’t have to upload a .csv or .xml file each time. I also read this discussion on GitHub, but I am not sure, if this is related to my problem.
Also, I don’t necessarily have to use crossref or the crossrefapi package, so any other suggestions on how to automatically obtain a DOI are also appreciated.