8 stable releases

2.5.0 Jan 22, 2020
2.4.0 Jan 18, 2020
1.0.0 Jan 11, 2020

#300 in #video

Download history 28/week @ 2024-02-24 47/week @ 2024-03-30 9/week @ 2024-04-06

56 downloads per month

MIT license

11KB
144 lines

logoomdb-rs

OMDb library for Rust

This is a library of tools for searching/interacting with the Online Movie Database. This is achieved through the use of a Film object that can hold certain common features of a film. For example...

use omdbrs::Film;

let NAME = String::from("Shrek");
let API_KEY = String::from("[YOUR_API_KEY]");

let film: Film = Film::from_title(NAME, API_KEY);

assert_eq!(film.get_year(), "2001");

Note: This library uses an outdated version of Reqwest.


lib.rs:

A library for interacting with the OMDb in Rust.

Interactions are mostly through the Film object, which is constructed using some information applicable to an OMDb search, and which can then be interacted with through a series of methods.

Dependencies

~23MB
~493K SLoC