From 439d0d5aca826917da5467750fa0f3b9e6ce7402 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 10 Feb 2019 21:53:27 +0100 Subject: updating citations --- scraper/s2-citation-report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scraper/s2-citation-report.py') diff --git a/scraper/s2-citation-report.py b/scraper/s2-citation-report.py index 580312ff..6dfababd 100644 --- a/scraper/s2-citation-report.py +++ b/scraper/s2-citation-report.py @@ -76,7 +76,7 @@ def write_master_report(fn, papers): report_fn = '../site/content/datasets/{}/index.md'.format(key) has_report = os.path.exists(report_fn) statistics[key] = stats - search_result = read_json('./datasets/s2/entries/{}.json'.format(paper['paperId'])) + # search_result = read_json('./datasets/s2/entries/{}.json'.format(paper['paperId'])) image_count = stats['images'] if type(image_count) is str: @@ -92,7 +92,7 @@ def write_master_report(fn, papers): clean(stats['faces_unique']) or None, stats['year_published'], clean(paper['citation_count']) or 0, - clean(search_result['citationStats']['numKeyCitations']) or 0, + # clean(search_result['citationStats']['numKeyCitations']) or 0, # origin ]) master_paper_keys = [ @@ -103,7 +103,7 @@ def write_master_report(fn, papers): 'people', 'year', 'citations', - 'influenced', + # 'influenced', # 'origin' ] write_csv(fn, keys=master_paper_keys, rows=master_papers) -- cgit v1.2.3-70-g09d2