Created
May 26, 2025 04:23
-
-
Save nanaelie/cfffe37450c6b0801e2568b1801bd886 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mailgrab as mgb # or from mailgrab import * | |
# Validate the path to a file containing emails | |
path = mgb.validate_path("file.txt") | |
# Read file content | |
with open(path, "r") as f: | |
content = f.read() | |
# Extract emails from content | |
emails = mgb.extract_emails(content) | |
# Display emails using the built-in printer | |
mgb.print_emails(emails) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment