Skip to content

Commit

Permalink
minor backend fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Saad-Falcon committed Jun 16, 2021
1 parent 3b9bed8 commit b3ffd3c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 15 deletions.
30 changes: 15 additions & 15 deletions Preprocessing/NewGoogleQueryRecent.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,35 +216,35 @@ def newGenerateRecentGoogleScholarCSV(list_of_researchers):

try:

search_query = next(scholarly.search_author(list_of_researchers.iloc[i][0]))
author = search_query.fill()
search_query = next(scholarly.search_author(list_of_researchers.iloc[i][0]))
author = search_query.fill()



researcher = author.name
researcher = author.name

print(researcher)
print(researcher)



if author != None:
if author != None:

publications = author.publications
publications = author.publications

outputGrid.append([researcher, str(researcher_URL), "True"])
outputGrid.append([researcher, str(researcher_URL), "True"])

else:
search_query = 'error'
author = 'error'
else:
search_query = 'error'
author = 'error'

outputGrid.append([researcher, str(researcher_URL), "False"])
outputGrid.append([researcher, str(researcher_URL), "False"])

except:
except:

search_query = 'error'
author = 'error'
search_query = 'error'
author = 'error'

outputGrid.append([researcher, str(researcher_URL), "False"])
outputGrid.append([researcher, str(researcher_URL), "False"])


if search_query != 'error':
Expand Down
21 changes: 21 additions & 0 deletions scholar.log
Original file line number Diff line number Diff line change
Expand Up @@ -18503,3 +18503,24 @@ INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&view_op=view_c
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&view_op=view_citation&citation_for_view=HOYJ86sAAAAJ:2osOgNQ5qMEC
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=a6-onLoAAAAJ&hl=en&cstart=100&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=https://scholar.google.co.uk/citations?user=OkUv-F4AAAAJ&hl=en&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=https://scholar.google.co.uk/citations?user=9L-xODcAAAAJ&hl=en&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=poIiHR0AAAAJ&hl=en&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=poIiHR0AAAAJ&hl=en&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=vD2DRqoAAAAJ&hl=en&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=vD2DRqoAAAAJ&hl=en&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=vD2DRqoAAAAJ&hl=en&cstart=100&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=HOYJ86sAAAAJ&hl=en&pagesize=100
INFO:scholarly:Session proxy config is {}
INFO:scholarly:Getting https://scholar.google.com/citations?hl=en&user=HOYJ86sAAAAJ&hl=en&pagesize=100
INFO:scholarly:Session proxy config is {}

0 comments on commit b3ffd3c

Please sign in to comment.