diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-02-10 21:53:27 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-02-10 21:53:27 +0100 |
| commit | 439d0d5aca826917da5467750fa0f3b9e6ce7402 (patch) | |
| tree | 3aa0061fe18c5695814d3ed220e4ff78ac131699 /scraper/s2-citation-report.py | |
| parent | a8cd75d12efa52cd83025c4b250d2a7703b7661b (diff) | |
updating citations
Diffstat (limited to 'scraper/s2-citation-report.py')
| -rw-r--r-- | scraper/s2-citation-report.py | 6 |
1 files changed, 3 insertions, 3 deletions
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) |
