Project

arxiv

0.02
Low commit activity in last 3 years
A long-lived project that still receives updates
Easily access arXiv article info – including authors, categories, links, etc.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.10.2
~> 3.3, >= 3.3.0

Runtime

~> 0.4, >= 0.4.1
~> 1.6, >= 1.6.6.2
 Project Readme

A Ruby wrapper for the arXiv API. ArXiv is an open access pre-print server used primarily in physics, mathematics, computer science, quantitative biology, quantitative finance and statistics.

This is not a complete wrapper around the arXiv API. We'll be making improvements as needed for our overlay journals. If you'd like something added, please create an issue or pull request.

Fetching a manuscript

Grab a manuscript using the arXiv document id:

manuscript = Arxiv.get('1202.0819')

And inspect it:

manuscript.revision?  # => false
manuscript.title      # => "Laser frequency comb techniques for precise astronomical spectroscopy"
manuscript.abstract   # => "Precise astronomical spectroscopic analyses routinely assume..."
manuscript.arxiv_id   # => "1202.0819"
manuscript.version    # => 1
manuscript.pdf_url    # => "http://arxiv.org/pdf/1202.0819v1"

Authors

Look up a manuscript's authors:

authors = manuscript.authors  # => an array of all the manuscript's authors
authors.map(&:name)   # => ["Michael T. Murphy", "Clayton R. Locke", "Philip S. Light", "Andre N. Luiten", "Jon S. Lawrence"]

# a single author
authors.last.name           # => "Jon S. Lawrence"
authors.last.affiliations   # => ["Australian Astronomical Observatory", "Macquarie University"]

Categories

Look at a manuscript's categories:

manuscript.categories                       # => an array of categories
manuscript.categories.map(&:abbreviation)   # => ["astro-ph.IM", "astro-ph.CO", "astro-ph.EP"]

# a single category
manuscript.primary_category.name          # => "astro-ph.IM"
manuscript.primary_category.description   # => "Physics - Instrumentation and Methods for Astrophysics"

License

This is an open source project built by Scholastica under the MIT-LICENSE.