Skip to main content

semanticscholar

Latest version GitHub license

A python library that aims to retrieve data from Semantic Scholar API.

How to install

pip install semanticscholar

Usage

Programmatically access paper and author data.

Paper Lookup

To access paper data:

>>> import semanticscholar as sch
>>> paper = sch.paper('10.1093/mind/lix.236.433', timeout=2)
>>> paper.keys()
dict_keys(['abstract', 'arxivId', 'authors', 'citationVelocity', 'citations', 'doi',
'influentialCitationCount', 'paperId', 'references', 'title', 'topics', 'url', 'venue', 'year'])
>>> paper['title']
'Computing Machinery and Intelligence'
>>> for author in paper['authors']:
...     print(author['name'])
...     print(author['authorId'])
...
Alan M. Turing
2262347

Author Lookup

To access author data:

>>> import semanticscholar as sch
>>> author = sch.author(2262347, timeout=2)
>>> author.keys()
dict_keys(['aliases', 'authorId', 'citationVelocity', 'influentialCitationCount', 'name', 'papers', 'url'])
>>> author['name']
'Alan M. Turing'
>>> len(author['papers'])
77

Metadata

Release files for pysemanticscholar 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pysemanticscholar 0.1.6
File Size Uploaded Provenance Actions
pysemanticscholar-0.1.6.tar.gz 3.1 kB Without provenance Details for pysemanticscholar-0.1.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pysemanticscholar 0.1.6
File Interpreter ABI Platform Actions
pysemanticscholar-0.1.6-py3-none-any.whl Python 3 none any Details for pysemanticscholar-0.1.6-py3-none-any.whl

Total release size: 7.5 kB

Release files / pysemanticscholar-0.1.6.tar.gz

Download URL pysemanticscholar-0.1.6.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3f92f98db234c4a3fabbeec1123ed59de2034770851b307037f9af361d687233
BLAKE2b-256 checksum
How to use checksums
45c433eb1ce93628af8e8a376f27b3ccb90bce7193c7338fdc6e29b2113ca5bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.8.0

Release files / pysemanticscholar-0.1.6-py3-none-any.whl

Download URL pysemanticscholar-0.1.6-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a6b7f8bc33c38e61d0dee4fd1c60d5e4b6b357674d3842326902e7ab6d084dc
BLAKE2b-256 checksum
How to use checksums
21b2f4a2ac03ce9dc956b37639d2a2055cfd16652b119cdae4d03c5df9cb3b4f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.8.0

Security for pysemanticscholar 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page