A python library aiming to get data via Semantic Scholar API
Project description
semanticscholar
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pysemanticscholar-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a6b7f8bc33c38e61d0dee4fd1c60d5e4b6b357674d3842326902e7ab6d084dc |
|
MD5 | 6545ea953027b1daf9afa8e695f3ca54 |
|
BLAKE2b-256 | 21b2f4a2ac03ce9dc956b37639d2a2055cfd16652b119cdae4d03c5df9cb3b4f |