A python library that aims to retrieve data from 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
semanticscholar-0.1.6.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for semanticscholar-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f610e979a390af33f4d458b7615311881ec8172889865419f0127c39f0ecf542 |
|
MD5 | 3a2eac2acb954cbd08e38ed366c99a4c |
|
BLAKE2b-256 | f67429969b6f5a052b490a2b25db99ad93e035e74ea6a05d8e2d5d7d9942b723 |