async runClassScrape(req, res) {
      
      //Get the URL updated within the options object
      options.url = BASE_URI+req.params.classNumber;
      
      //Attempt to successfully scrape the name from ASU server
      request(options, function (error, reso, body) {
        if (!error && res.statusCode == 200) {
            let $ = cheerio.load(body);
            let className = $('.crs-title').text().trim();
            
            if (className === "") {
              res.json("Class not found");
            } else {
              res.json($('.crs-title').text().trim());
            }
        } else {
            res.json("Sorry, but there has been an interval server error");
        }
      });
    }
/**
     * Get the className given a valid classNumber
     */
Get the className given a valid classNumber
Get the className given a valid classNumber
async runClassScrape(req, res) {
      options.url = BASE_URI+req.params.classNumber;
      request(options, function (error, reso, body) {
        if (!error && res.statusCode == 200) {
            let $ = cheerio.load(body);
            let className = $('.crs-title').text().trim();
            if (className === "") {
              res.json("Class not found");
            } else {
              res.json($('.crs-title').text().trim());
            }
        } else {
            res.json("Sorry, but there has been an interval server error");
        }
      });
    }
async runClassScrape ( req , res ) { options . url = BASE_URI + req . params . classNumber ; request ( options , function ( error , reso , body ) { if ( ! error && res . statusCode == 200 ) { let $ = cheerio . load ( body ) ; let className = $ ( '.crs-title' ) . text ( ) . trim ( ) ; if ( className === "" ) { res . json ( "Class not found" ) ; } else { res . json ( $ ( '.crs-title' ) . text ( ) . trim ( ) ) ; } } else { res . json ( "Sorry, but there has been an interval server error" ) ; } } ) ; }
Get the className given a valid classNumber
Get the className given a valid classNumber
//Get the URL updated within the options object //Attempt to successfully scrape the name from ASU server