Skip to content

Instantly share code, notes, and snippets.

@alecjacobson
alecjacobson / papers_most_often_cited_in_specific_author_papers.py
Created August 31, 2022 15:05
Frequency Count of Papers Most Cited in a Specific Authors Publications
#!/usr/bin/env python
from semanticscholar import SemanticScholar
from collections import defaultdict
sch = SemanticScholar(timeout=2)
# Replace with author id found in url like
# https://www.semanticscholar.org/author/E.-Catmull/3132499
author = sch.author(3132499)
paperId_counts = defaultdict(int)
paperId_short_recs = {}
for authors_paper_short_rec in author['papers']: