recon_metadata, book details and metadata search library written in Rust using

recon_metadata, book details and metadata search library written in reqwest

recon_metadata

recon_metadata, book details and metadata search library written in Rust using

  • reqwest
  • futures
  • scraper
  • tokio
  • serde

Installation

Add as dependency in Cargo.toml

You can use it as a submodule or directly via cargo's git option.

git

GitLab
[dependencies]
recon_metadata = { git = "https://gitlab.com/CuriousCorrelation/recon_metadata" }
GitHub
[dependencies]
recon_metadata = { git = "https://github.com/CuriousCorrelation/recon_metadata" }

Submodule

[dependencies]
recon_metadata = { path = "recon_metadata" }

Usage

There are two types of search recon_metadata can perform

ISBN search

#[tokio::main]
async fn main() {
    use recon_metadata::{Metadata, Source, ReconError};
    use isbn2::Isbn;
    use std::str::FromStr;

    let isbn = Isbn::from_str("9781534431003").unwrap();

    let sources = [Source::GoogleBooks, Source::OpenLibrary];

    let res: Result<Metadata, ReconError> = Metadata::from_isbn(&sources, &isbn).await;

    assert!(res.is_ok());
}

Descriptive search

Description search requires a primary source as well as a list of sources like from_isbn.

from_description search will first look for ISBN numbers associated with the description string given. The sources will provide additional information about said ISBN numbers.

This way the search results remain consistent and reduce the risk of recursive search and duplicate results.

#[tokio::main]
async fn main() {
    use recon_metadata::{Metadata, Source, ReconError};

    let description = "This is how you lose the time war";

    let sources = [Source::GoogleBooks, Source::OpenLibrary];

    let res: Result<Vec<Metadata>, ReconError> =
        Metadata::from_description(&Source::GoogleBooks, &sources, description).await;

    assert!(res.is_ok());
}

Information - Updated Oct 14, 2021

Stars: 0
Forks: 0
Issues: 0

Tantivy is a full text search engine library written in Rust

It is closer to Elasticsearch or benchmark break downs

Tantivy is a full text search engine library written in Rust

A Full-Text Search Engine in Rust

Toshi will always target stable Rust and will try our best to never make any use of unsafe Rust

A Full-Text Search Engine in Rust

Rust lang bookmarking tool

Rust and Rocket used bookmarking tool for search bar

Rust lang bookmarking tool

Ternary search tree collection in rust with similar API to std::collections as it possible

Ternary search tree is a type of trie (sometimes called a prefix tree) where nodes are arranged in a manner similar to a binary search...

Ternary search tree collection in rust with similar API to std::collections as it possible

Sonic-channel is a rust client for the sonic search backend

Quick and easy way to get started with search in rust

Sonic-channel is a rust client for the sonic search backend

amber is a code search and replace tool written by Rust

amber is a code search and replace tool written by ack,

amber is a code search and replace tool written by Rust

txtai: AI-powered search engine for Rust

Overview of the functionality provided by txtai

txtai: AI-powered search engine for Rust

Roogle is a Rust API search engine, which allows you to search functions by names...

Roogle is a Rust API search engine, which allows you to search functions by names and type signatures

Roogle is a Rust API search engine, which allows you to search functions by names...

Tantivy is a full text search engine library written in Rust

It is closer to Elasticsearch or benchmark break downs

Tantivy is a full text search engine library written in Rust

Non-official rust library to search Nyaa

si does not provide any APIs so I thought it would be cool to have a way to do so in Rust and that's why...

Non-official rust library to search Nyaa
Facebook Instagram Twitter GitHub Dribbble
Privacy