SemanticScholarToolkit
init
fetch_paper_data_title
- paper_title (str): The title of the paper to fetch.
- fields (Optional[List[str]], optional): The fields to include in the response (default: :obj:
None
). If not provided defaults to [“title”, “abstract”, “authors”, “year”, “citationCount”, “publicationTypes”, “publicationDate”, “openAccessPdf”].
fetch_paper_data_id
- paper_id (str): The ID of the paper to fetch.
- fields (Optional[List[str]], optional): The fields to include in the response (default: :obj:
None
). If not provided defaults to [“title”, “abstract”, “authors”, “year”, “citationCount”, “publicationTypes”, “publicationDate”, “openAccessPdf”].
fetch_bulk_paper_data
- query (str): The text query to match against the paper’s title and abstract. For example, you can use the following operators and techniques to construct your query: Example 1: ((cloud computing) | virtualization) +security -privacy This will match papers whose title or abstract contains “cloud” and “computing”, or contains the word “virtualization”. The papers must also include the term “security” but exclude papers that contain the word “privacy”.
- year (str, optional): The year filter for papers (default: :obj:
"2023-"
). - fields (Optional[List[str]], optional): The fields to include in the response (default: :obj:
None
). If not provided defaults to [“title”, “url”, “publicationTypes”, “publicationDate”, “openAccessPdf”].
fetch_recommended_papers
- positive_paper_ids (list): A list of paper IDs (as strings) that are positively correlated to the recommendation.
- negative_paper_ids (list): A list of paper IDs (as strings) that are negatively correlated to the recommendation.
- fields (Optional[List[str]], optional): The fields to include in the response (default: :obj:
None
). If not provided defaults to [“title”, “url”, “citationCount”, “authors”, “publicationTypes”, “publicationDate”, “openAccessPdf”]. - limit (int, optional): The maximum number of recommended papers to return (default: :obj:
500
). - save_to_file (bool, optional): If True, saves the response data to a file (default: :obj:
False
).
fetch_author_data
- ids (list): A list of author IDs (as strings) to fetch data for.
- fields (Optional[List[str]], optional): The fields to include in the response (default: :obj:
None
). If not provided defaults to [“name”, “url”, “paperCount”, “hIndex”, “papers”]. - save_to_file (bool, optional): Whether to save the results to a file (default: :obj:
False
).