fn main() { let pat = easy_scraper::Pattern::new( r##"
  • {{title}}

    • {{date}}
    • {{view}}
  • 最近急上昇
  • "##, ) .unwrap(); let doc = reqwest::blocking::get("https://www.youtube.com/feed/trending") .unwrap() .text() .unwrap(); let ms = pat.matches(&doc); println!("{:#?}", ms); println!("{} results", ms.len()); }