Crates.io | rusty-scrap |
lib.rs | rusty-scrap |
version | 0.1.9 |
source | src |
created_at | 2024-12-04 07:35:34.869431 |
updated_at | 2024-12-09 14:11:16.310482 |
description | HTML Scrapper |
homepage | |
repository | |
max_upload_size | |
id | 1471593 |
size | 14,768 |
This project uses the rusty-scrap
crate in Rust to scrape data from Wikipedia pages. Specifically, it targets the page.
This script scrapes the text content of elements from the specified URL.
Dependencies:
Ensure you have Rust and Cargo installed. Then, add the scrap
crate to your Cargo.toml
file:
[dependencies]
rusty-scrap = "0.3"
Run the script:
main.rs
:use rusty-scrap::{Scrap};
fn main() -> Result<(), Box<dyn std::error::Error>> {
let response = Scrap::new()
.url("https://en.wikipedia.org/wiki/Bill_Gates")
.build()
.element_values();
Ok(())
}
cargo run