arxiv.org科学出版物的非正式api工具
arxiver的Python项目详细描述
ARXIVER是康奈尔的ARXIV.ORG的一个非官方API。此软件包允许访问各种主题的搜索结果和新出版物。
开始
通过运行以下命令安装:^ {STR 1 } $ARXIVER < /强>:
$ pip install arxiver
然后在python文件中添加:
import arxiver
有两个主要的ARXIVER函数:^ {CD1>}和^ {CD2>}。
获取新出版物(主题)
在给定的某个主题中返回在ARXIV.ORG上发布的所有新出版物,其中的某个主题位于^ {CD3>}列表中。
参数
topic
:标识应从哪个主题检索新发布的字符串。有效主题列表:
'astro-ph' # Astrophysics 'cond-mat' # Condensed Matter 'gr-qc' # General Relativity and Quantum Cosmology 'hep-ex' # High Energy Physics - Experiment 'hep-lat' # High Energy Physics - Lattice 'hep-ph' # High Energy Physics - Phenomenology 'hep-th' # High Energy Physics - Theory 'math-ph' # Mathematical Physics 'nlin' # Nonlinear Sciences 'nucl-ex' # Nuclear Experiment 'nucl-th' # Nuclear Theory 'physics' # Physics 'quant-ph' # Quantum Physics 'math' # Mathematics 'cs' # Computer Science 'q-bio' # Quantitative Biology 'q-fin' # Quantitative Finance 'stat' # Statistics
示例
从计算机科学的新出版物中返回论文列表并打印到每个pdf的链接:
papers = arxiver.get_new_publ('cs') for paper in papers: print paper.pdf
搜索(查询,最大搜索结果=30)
参数
将字符串搜索查询传递给^ {CD7>}:返回的可选正整数最大值(默认值为30)
示例
返回一个包含15篇论文的列表,以“electron”作为搜索词,并打印每个论文的摘要:
papers = arxiver.search('electron', max_results=15) for paper in paper: print paper.abstract
纸张
Paper
对象具有以下属性:
Paper.title
论文题目Paper.abstract
摘要或简短摘要- ^ {CD11> }标识ARXIV文件 的唯一字符串
Paper.pdf
链接到整篇论文的pdf文件Paper.authors
按关键字'name'
和'link'
由词典重新编辑的作者列表