usereqwest::Url;useselect::document::Document;useselect::predicate::Name;/// Finds the href in the `<base>` tag.
pubfnbase_url(doc:&Document)->Option<Url>{
doc.find(Name("base")).filter_map(|n|n.attr("href")).filter_map(|href|Url::parse(href).ok()).next()}