10 releases

0.1.10 Mar 14, 2025
0.1.9 Dec 9, 2024

#697 in Web programming

Download history 127/week @ 2024-11-29 487/week @ 2024-12-06 78/week @ 2024-12-13 1/week @ 2024-12-20 2/week @ 2025-01-03 7/week @ 2025-01-10 14/week @ 2025-02-14 16/week @ 2025-02-21 4/week @ 2025-02-28 3/week @ 2025-03-07 154/week @ 2025-03-14

188 downloads per month
Used in 3 crates (via gemini-ai)

MIT license

9KB
147 lines

Scraper using Scrap

This project uses the rusty-scrap crate in Rust to scrape data from Wikipedia pages. Specifically, it targets the page.

Usage

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:

  1. Save the following code as 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(())
}
  1. Compile and run using Cargo:
cargo run

Dependencies

~2–12MB
~157K SLoC