Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 345 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 345 Bytes

url-scraper

Rust crate for scraping URLs from HTML pages.

Example

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);
    }
}