Crates.io | url-scraper |
lib.rs | url-scraper |
version | 0.1.2 |
source | src |
created_at | 2018-10-07 03:55:57.077564 |
updated_at | 2020-07-02 20:25:00.873685 |
description | Simple HTML URL scraper |
homepage | |
repository | https://github.com/pop-os/url-scraper |
max_upload_size | |
id | 88473 |
size | 92,341 |
Rust crate for scraping URLs from HTML pages.
extern crate url_scraper;
use url_scraper::UrlScraper;
fn main() {
let directory = "http://phoronix.com/";
let scraper = UrlScraper::new(directory).unwrap();
for (text, url) in scraper.into_iter() {
println!("{}: {}", text, url);
}
}