Skip to content

Instantly share code, notes, and snippets.

@philippbayer
Created October 22, 2018 02:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save philippbayer/4e322277c73976e5f17057ad0056d991 to your computer and use it in GitHub Desktop.
Save philippbayer/4e322277c73976e5f17057ad0056d991 to your computer and use it in GitHub Desktop.
''' First line of authors.txt is a comma-delimited list of authors of the suggested paper
Second line is a comma delimited list of suggested reviewers'''
names = open('./authors.txt').readlines()
first = ['"%s"'%x.strip() for x in names[0].rstrip().split(',')]
second = ['"%s"'%x.strip() for x in names[1].rstrip().split(',')]
print(first)
print(second)
import os
for a in first:
for b in second:
print('Pair: %s and %s'%(a,b))
print(os.popen('python2 scholar.py -a %s,%s'%(a,b)).read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment