Skip to main content

arXiv-CLI

https://travis-ci.org/jacquerie/arxiv-cli.svg?branch=master https://coveralls.io/repos/github/jacquerie/arxiv-cli/badge.svg?branch=master

About

A Python wrapper for the arXiv API.

Install

$ pip install arxiv-cli

Usage

You can use arXiv-CLI as a CLI to navigate arXiv or as a library to query its API.

CLI

Currently arXiv-CLI implements three subcommands:

$ arxiv download [-t/--timeout seconds] IDS
$ arxiv fetch [-t/--timeout seconds] IDS
$ arxiv find [-i/--ids, -t/--timeout seconds] QUERY

The first two commands accept a list of arXiv ids and, respectively, download the corresponding PDFs or display their metadata in JSON format.

The third command runs a query against arXiv and prints the metadata in JSON format of the records that match. Adding the -i/--ids flag will return only their ids.

Adding the -t/--timeout seconds option will sleep for that amount of seconds between successive requests to the arXiv API.

Note that the previous commands can be chained, therefore running

$ arxiv download $(arxiv find --ids QUERY)

will download all papers that match QUERY, while

$ arxiv fetch $(arxiv find --ids QUERY)

will fetch all their metadata.

API

The previous CLI is built on top of a Python library that can be used on its own to query arXiv’s API. For example:

>>> from arxiv_cli import Client
>>> client = Client()
>>> client.download([IDS])

will achieve the same effect as

$ arxiv download IDS

Author

Jacopo Notarstefano (@Jaconotar)

License

MIT

Metadata

Release files for arxiv-cli 0.1.6

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

Source distribution (sdist)

Source distribution for arxiv-cli 0.1.6
File Size Uploaded
arxiv-cli-0.1.6.tar.gz 4.5 kB Details

Release files / arxiv-cli-0.1.6.tar.gz

Download URL arxiv-cli-0.1.6.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2e97e602f3ae2d0ecbd441a400ea7343f4da7154abd97bd646e3c5a26aa6c9cd
BLAKE2b-256 checksum
How to use checksums
818b113573595b18456f38ccec07bc44da68f06c51cb2ff34438b39a773192a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.1.6 This release

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.0

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