Rust Research Paper Parser (rsrpp)

Getting Started
Installation
cargo install rsrpp
Examples
Here are a few examples to help you get started with rsrpp:
Parsing a Research Paper
To parse a research paper, use the following command:
use rsrpp::parser::{ParseConfig, parse};
#[tokio::main]
async fn main() {
let mut config = ParserConfig::new();
let url = "https://arxiv.org/pdf/2410.24080";
let res = parse(url, &mut config).await;
let pages = res.unwrap(); }
Extract Texts as json
use rsrpp::parser::{ParseConfig, parse};
#[tokio::main]
async fn main() {
let mut config = ParserConfig::new();
let url = "https://arxiv.org/pdf/1706.03762";
let pages = parse(url, &mut config).await.unwrap();
let json = pages2json(&pages);
}
For more detailed usage and options, refer to the source code.