[][src]Function website_icon_extract::extract_icons

pub fn extract_icons(
    url: &str,
    user_agent: &str,
    tcp_timeout: u32
) -> Result<Vec<String>, Box<dyn Error>>

Download and analyze a html page from http/https url. Return all found icon urls.

Arguments

  • url - An url to check
  • user_agent - User agent header string for http requests
  • tcp_timeout - Http timeout in seconds