Crates.io | only_scraper |
lib.rs | only_scraper |
version | 0.1.2 |
source | src |
created_at | 2024-02-03 09:00:53.715162 |
updated_at | 2024-02-03 18:03:11.809979 |
description | Only scrape webpages |
homepage | |
repository | https://github.com/edlugora96/only_scraper |
max_upload_size | |
id | 1125233 |
size | 1,309,828 |
Only Scraper is a minimalist, high-performance web scraping tool written in Rust 🦀, focusing solely on the task of scraping web pages. It stands out by not using any external libraries, thereby providing a streamlined and efficient solution for developers. This project is tailored for those who seek a simple and direct approach to web scraping, without the overhead of additional functionalities that are often bundled in other libraries.
With a plethora of web scraping tools available, many of which offer extensive features like end-to-end testing and browser automation, Only Scraper cuts through the noise by offering a no-frills, focused solution. By eliminating the dependency on external libraries, Only Scraper ensures that your scraping tasks are not bogged down by unnecessary complexities, making it a swift and straightforward option for retrieving web page data.
To integrate Only Scraper into your Rust project, add the following to your Cargo.toml
file:
[dependencies]
only_scraper = "0.1.2"
This will fetch the library directly from the GitHub repository and incorporate it into your project.
Only Scraper is designed to be as simple as possible, with only one method needed to perform web scraping. Here's a minimal example to demonstrate its usage:
use only_scraper;
use std::io::Result;
fn main() -> Result<()> {
let html = only_scraper::scrape("https://example.com")?;
println!("{}", html);
Ok(())
}
This code snippet fetches the HTML content of the specified URL and prints it out, showcasing the simplicity and efficiency of Only Scraper.
We welcome contributions to make Only Scraper even better. Whether it's feature requests, bug reports, or code contributions, please feel free to reach out by opening an issue or a pull request on GitHub.
Only Scraper is released under the MIT License. For more details, please refer to the LICENSE file in the repository.