fn check_open_seats(&self) -> std::result::Result<i32, String> {
        use std::error::Error;
        let curl_stdout = cmd!("curl", "-s", &self.url)
            .pipe(cmd!("sed", "140q;d"))
            .pipe(cmd!("sed", "-n", "-E", "s/<TD CLASS=\"dddefault\">|<\\/TD>//gp"))
            .read();
        curl_stdout.map_err(|e| e.description().into())
            .and_then(|out| out.parse::<i32>().map_err(|e| e.description().into()))
    }
// Curls the course website and checks the open seats section from the html
Curls the course website and checks the open seats section from the html
Curls the course website and checks the open seats section from the html
fn check_open_seats(&self) -> std::result::Result<i32, String> {
        use std::error::Error;
        let curl_stdout = cmd!("curl", "-s", &self.url)
            .pipe(cmd!("sed", "140q;d"))
            .pipe(cmd!("sed", "-n", "-E", "s/<TD CLASS=\"dddefault\">|<\\/TD>//gp"))
            .read();
        curl_stdout.map_err(|e| e.description().into())
            .and_then(|out| out.parse::<i32>().map_err(|e| e.description().into()))
    }
fn check_open_seats ( & self ) -> std :: result :: Result < i32 , String > { use std :: error :: Error ; let curl_stdout = cmd ! ( " " " " self url ) . pipe ( cmd ! ( " " " " ) ) . pipe ( cmd ! ( " " " " " " " \" \" \\ " ) ) . read ( ) ; curl_stdout . map_err ( | e | e . description ( ) . into ( ) ) . and_then ( | out | out . parse :: < i32 > ( ) . map_err ( | e | e . description ( ) . into ( ) ) ) }
Curls the course website and checks the open seats section from the html
Curls the course website and checks the open seats section from the html
&self