MyNixOS website logo
Description

Command line tool to search and download papers from arXiv.org.

This is a command line interface (cli) application wrapping the library arxiv-client, which is a Haskell tool to search and download papers from arXiv.org using a simple query DSL.

Arxiv Cli

arxiv-client-cli is a command-line interface (CLI) tool for searching and downloading research papers from arXiv.org, it warps the library arxiv-client.

Help Text

Arxiv Client CLI

Usage: arxiv-client-cli [-q|--query TEXT] [-H|--helpQuery] [-p|--downloadPdf] 
                        [-s|--downloadSrc] [-u|--ungzip] [-c|--concise] 
                        [-v|--detail] [-a|--abstract] [-j|--json] 
                        [-d|--downloadDir STRING] [--after yyyy-mm-dd] 
                        [--before yyyy-mm-dd] [-m|--maxResult INT] 
                        [-n|--page INT]

Available options:
  -h,--help                Show this help text
  -q,--query TEXT          Search query string
  -H,--helpQuery           Display help for constructing query strings
  -p,--downloadPdf         Download PDF files for each entry
  -s,--downloadSrc         Download source .tar.gz files for each entry
  -u,--ungzip              Automatically ungzip source files (by running "tar
                           -xzf")
  -c,--concise             Concise output (only titles)
  -v,--detail              Detailed output
  -a,--abstract            Include abstracts in the output
  -j,--json                Output results in JSON format, turn off
                           human-readable output
  -d,--downloadDir STRING  Directory path to save downloaded files
                           (default: "./")
  --after yyyy-mm-dd       Only include papers published after this date
                           (YYYY-MM-DD)
  --before yyyy-mm-dd      Only include papers published before this date
                           (YYYY-MM-DD)
  -m,--maxResult INT       Maximum results per page (default: 25)
  -n,--page INT            Page number to retrieve (starting from 0)

Constructing Query String

--query parameter is mandatory.
Query string is constructed by using

* <field> <match> <value>
  <field> := title | author | abstract | category | anywhere
  (<match>, <value>) :=
    is <string>          -- exact match
    has <string>         -- substring match
    any [<string>, ...]  -- any of the strings (ors)
    all [<string>, ...]  -- all of the strings (ands)

* You can write a single string "value" without specifying field and match,
  which is equivalent to: anywhere has "value"

* Logical operators:
  &&      -- and (note that these operators are right associative, use brackets for clarity)
  ||      -- or  (note that these operators are right associative, use brackets for clarity)
  ands [<queryTerm>, ...]  -- and multiple terms
  ors  [<queryTerm>, ...]  -- or  multiple terms
  not <queryTerm>          -- negate term

Examples:
  --query 'title has "quantum" && author is "Albert Einstein"'
  --query 'author any ["john doe", "jane smith"]'
  --query 'ands [title is "coleman", author has "doe"]'
  --query 'ors [category is "math.NT", category is "math.AG"]'

Installation

cabal install arxiv-client-cli
Metadata

Version

0.1.0.0

Platforms (76)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    WASI
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-windows
  • aarch64_be-none
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • vc4-none
  • wasm32-wasi
  • wasm64-wasi
  • x86_64-cygwin
  • x86_64-darwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-windows