Crates.io | emails |
lib.rs | emails |
version | 1.0.0 |
source | src |
created_at | 2024-09-13 03:27:11.17799 |
updated_at | 2024-09-13 03:27:11.17799 |
description | A web scraper to extract email addresses from websites. |
homepage | https://github.com/cybrly/emails |
repository | https://github.com/cybrly/emails |
max_upload_size | |
id | 1373330 |
size | 68,644 |
emails
is a Rust-based command-line tool for scraping emails from websites. It takes a URL as input, searches the website for email addresses, and prints the results to the console. The tool offers several features, including multi-threading, recursion depth, timeout handling, and strict domain matching.
http://
or https://
if the protocol is missing../emails
-d, --depth <DEPTH>
: Set the depth of recursion. Default is 2.-t, --threads <THREADS>
: Set the number of threads to use. Default is 4.--timeout <SECONDS>
: Set the timeout for the scrape. Default is 60 seconds.--strict
: Only print emails that match the domain of the provided URL.Scrape emails from a website:
./emails https://example.com
Scrape emails with a recursion depth of 3 and 8 threads:
./emails -d 3 -t 8 https://example.com
Scrape emails in strict mode:
./emails --strict https://example.com
To build the project from source, make sure you have Rust installed, then run:
cargo build --release
The executable will be available in target/release/emails
.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.