diff options
Diffstat (limited to 'scraper/s2-final-report.py')
| -rw-r--r-- | scraper/s2-final-report.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scraper/s2-final-report.py b/scraper/s2-final-report.py index 854aa940..29b701b5 100644 --- a/scraper/s2-final-report.py +++ b/scraper/s2-final-report.py @@ -134,6 +134,8 @@ def process_single_paper(row, paper_id, addresses, aggregate_citations, unknown_ if paper_id == 'search': dataset = row['key'] fn = 'datasets/s2/search_papers/{}.json'.format(dataset) + if not os.path.exists(fn): + return with open(fn, 'r') as f: citations = json.load(f) data = { 'citations': [ { 'paperId': paperId } for paperId in citations ] } |
