diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-05-03 19:15:22 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-05-03 19:15:22 +0200 |
| commit | fab8895268545575e0da9258bca2def6ce67550b (patch) | |
| tree | e9ba6ae3a0fd872246cf338d50140e223226fb3d /scraper | |
| parent | 8594f42dc20909e6e8a1f245504ffdcc577413cf (diff) | |
if not
Diffstat (limited to 'scraper')
| -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 ] } |
