Commit 7ec2afad authored by Mouhamadou Ba's avatar Mouhamadou Ba
Browse files

update

parent fee30ffe
......@@ -38,7 +38,7 @@ rule get_PMCID:
#Jdata = resp.json()
pmcid = Jdata["resultList"]["result"][0]["fullTextIdList"]["fullTextId"][0]
data.append(pmcid)
filename = output.doi_folder + '/'+ doi + '.json'
filename = output.doi_folder + '/'+ str(doi) + '.json'
os.makedirs(os.path.dirname(filename), exist_ok=True)
with open(filename, 'w+') as f:
f.write(resp.text)
......
......@@ -37,7 +37,7 @@ rule get_PMCID:
#Jdata = resp.json()
pmcid = Jdata["resultList"]["result"][0]["fullTextIdList"]["fullTextId"][0]
data.append(pmcid)
filename = output.pmid_folder + '/'+ pmid + '.json'
filename = output.pmid_folder + '/'+ str(pmid) + '.json'
os.makedirs(os.path.dirname(filename), exist_ok=True)
with open(filename, 'w+') as f:
f.write(resp.text)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment