This is a simple web scraper built with Rust that extracts headlines from a webpage. The scraper fetches the HTML content from a given URL, parses the content, and extracts all headlines (within <h3> tags) using the scraper crate.
- Fetches HTML content from a URL.
- Extracts headlines from the webpage.
- Outputs the list of headlines to the terminal.
- Install Rust
- Clone repo
- cd web_scraper/src
- You can modify the web page to be scraped on line 10 in main.rs
- cargo run
