use scraper::{Html, Selector}; use regex::Regex; use std::process::exit; fn main() { let standins_url = "https://www.bscyb.ch/tabelle-sl"; let response = reqwest::blocking::get(standins_url).unwrap().text().unwrap(); let document = Html::parse_document(&response); let row_selector = Selector::parse("tr").unwrap(); let ranks = document.select(&row_selector).map(|x| x.html()); let re_pattern = match Regex::new(r"