pub fn try_extract_links( html_content: &str, selector: &str, ) -> Result<Vec<String>>
从 HTML 中提取所有匹配 CSS 选择器的链接(href 属性)
和 extract_links 相比,此函数会返回选择器解析错误,适合需要严格错误处理的场景。
extract_links