Skip to main content

A python library aiming to get data via Semantic Scholar API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pysemanticscholar-0.1.6.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

pysemanticscholar-0.1.6-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file pysemanticscholar-0.1.6.tar.gz.

File metadata

  • Download URL: pysemanticscholar-0.1.6.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for pysemanticscholar-0.1.6.tar.gz
Algorithm Hash digest
SHA256 3f92f98db234c4a3fabbeec1123ed59de2034770851b307037f9af361d687233
MD5 4ecf1319f0e7f0c11ba22024854b7d5c
BLAKE2b-256 45c433eb1ce93628af8e8a376f27b3ccb90bce7193c7338fdc6e29b2113ca5bd

See more details on using hashes here.

File details

Details for the file pysemanticscholar-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: pysemanticscholar-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for pysemanticscholar-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 2a6b7f8bc33c38e61d0dee4fd1c60d5e4b6b357674d3842326902e7ab6d084dc
MD5 6545ea953027b1daf9afa8e695f3ca54
BLAKE2b-256 21b2f4a2ac03ce9dc956b37639d2a2055cfd16652b119cdae4d03c5df9cb3b4f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page