python altmetric api v1包装器
pyaltmetric的Python项目详细描述
pyaltmetric是Altmetric API v1的python包装器。它提供了一个api,用于下载和阅读单独和批量引用。
安装
pip install pyaltmetric
用法
按标识符按单个引用获取:
from pyaltmetric import Altmetric a = Altmetric() a.id("241939") a.doi("10.1038/news.2011.490") a.pmid("21148220") a.rxiv("1108.2455") a.ads("2012apphl.100y3104b") a = Altmetric("api_key_goes_here")
查询altmetric.com数据库:
a.citations("1w", page=1, nlmid="0410462")
阅读引文:
>>> from pyaltmetric import Altmetric, Citation >>> >>> b = a.id("241939") >>> c = Citation(b) >>> print c.title u'Rebuilding Global Fisheries' >>> >>> c # provides a snapshot of a citation's coverage across platforms. Altmetrics on: "Rebuilding Global Fisheries" with doi 10.1126/science.1173146 published in Science. All Posts 14 Tweets 6 Facebook 1 Google+ 0 Reddit 0 Blogs 2 >>>
- 免费软件:BSD许可证