arxiv-tools
Tools for arXiv API.
Quick Start
Installation
To start using arxiv-tools, just add it to your project's dependencies in the Cargo.toml.
> cargo
Then, import it in your program.
use ArXiv;
Usage
arxiv-tools is a simple api wrapper. You just need to build and execute the query.
-
simple query
// build the query let mut arxiv = new; arxiv.title; // execute let response: = arxiv.query.await; // serialize into json let response = to_string_pretty.unwrap; -
query combining multiple conditions
// build the query let mut arxiv = new; arxiv .subject_category .or .subject_category .submitted_date; // execute let response = arxiv.query.await; // serialize into json let response = to_string_pretty.unwrap; -
complex query using grouped conditions
// build the query let mut arxiv = new; arxiv .title .or .title .and .group_start .subject_category .or .subject_category .group_end .submitted_date; // execute let response = arxiv.query.await; // serialize into json let response = to_string_pretty.unwrap;