Comprehensive Rust(Español) 202412
you will need an HTTP client such as reqwest. You will also need a way to find links, we can use scraper. Finally, we'll need some way of handling errors, we will use thiserror. Create a new Cargo project new link-checker cd link-checker 345 cargo add --features blocking,rustls-tls reqwest cargo add scraper cargo add thiserror Si cargo add da error: no such subcommand, edita el archivo Cargo.toml de forma = false [dependencies] reqwest = { version = "0.11.12", features = ["blocking", "rustls-tls"] } scraper = "0.13.0" thiserror = "1.0.37" Ya puedes descargar la página de inicio. Prueba con un sitio pequeño0 码力 | 389 页 | 1.04 MB | 10 月前3
共 1 条
- 1