Trait queue_times::parser::ParkParser[][src]

pub trait ParkParser {
    fn new() -> Self;
fn get_ride_times(&self, html: &str) -> Result<Vec<RideTime>>; }
Expand description

Defines how a park’s rides should be parsed out of an HTML page.

Required methods

Builds all components needed for parsing eg. selectors or regex.

Parses all rides and their current wait from the passed html string. Errors if HTML is unable to be properly parsed, but does not verify if valid.

Implementors