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

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
pysemanticscholar-0.1.6.tar.gz 3.1 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

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