Eleonora Bernasconi commited on
Commit
a67f2c7
·
1 Parent(s): 6a03357
__pycache__/scholarly.cpython-37.pyc CHANGED
Binary files a/__pycache__/scholarly.cpython-37.pyc and b/__pycache__/scholarly.cpython-37.pyc differ
 
requirements.txt CHANGED
@@ -1,2 +1,4 @@
1
  scholarly
2
- habanero
 
 
 
1
  scholarly
2
+ habanero
3
+ pandas
4
+ stremlit
scholarly.py CHANGED
@@ -12,6 +12,9 @@ def get_citation_count(doi):
12
  return None
13
 
14
  def get_doi_from_title(title):
15
- cr = Crossref()
16
- result = cr.works(query = title)
17
- return (result['message']['items'][0]['DOI'])
 
 
 
 
12
  return None
13
 
14
  def get_doi_from_title(title):
15
+ try:
16
+ cr = Crossref()
17
+ result = cr.works(query = title)
18
+ return (result['message']['items'][0]['DOI'])
19
+ except:
20
+ return None