Skip to main content

arxiver is an unoffical API for Cornell’s arxiv.org. This package allows access for search results and new publications in various topics.

Getting started

Install arxiver by running the following command:

$ pip install arxiver

And then in your Python file add:

import arxiver

There are two main arxiver functions: get_new_publ and search.

get_new_publ(topic)

Returns all new publications posted on arxiv.org given a certain topic in a Paper list.

Parameters

topic: string that identifies from which topic the new publications should be retrieved. List of valid topics:

'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

Example

Return of list of papers from new publications in Computer Science and print out the link to each pdf:

papers = arxiver.get_new_publ('cs')
for paper in papers:
    print paper.pdf

search(query, max_results=30)

Return list of Paper objects from arxiv given a search query and a maximum number of results.

Parameters

query: string search query to pass to arxiv.org

max_results: optional positive integer maxiumum number of results to be returned (default is 30)

Example

Return a list of fifteen papers given ‘electron’ as a search term and print the abstract of each one:

papers = arxiver.search('electron', max_results=15)
for paper in paper:
    print paper.abstract

Paper

Paper objects have the following properties:

  • Paper.title the title of the paper

  • Paper.abstract the abstract or short summary

  • Paper.arxiv_id unique string that identifies the arxiv paper

  • Paper.pdf link to the pdf file of the whole paper

  • Paper.page link to the page on arxiv.org that includes more information

  • Paper.authors list of authors reprented by dictionaries with key 'name' and 'link'

Metadata

Release files for arxiver 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for arxiver 0.0.4
File Size Uploaded
arxiver-0.0.4.tar.gz 4.9 kB Details

Release files / arxiver-0.0.4.tar.gz

Download URL arxiver-0.0.4.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
2306eb4ffaea4c3a34a1cfb59a312d2441ca17c43b518ce4d9a7dfde7559a90f
BLAKE2b-256 checksum
How to use checksums
9f23f1cc9eac2a59523cccac1bed7f53a76df1a5cda9679843d97efed3f7545e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page