This script allows you to extract unique email addresses from .txt
files in a specified directory. It processes each text file, finds all email addresses using regular expressions, and outputs the results to a new file with a _emails.txt
suffix.
Visit here to read the full guide : π https://firexcore.com/blog/python-email-extractor/
Notes
The script only processes .txt files in the same directory as the script.
All email addresses are saved in a new file with duplicates removed.
Ensure your .txt files are encoded in UTF-8 to avoid decoding errors during processing.
Troubleshooting
If you encounter any issues with file encoding or email extraction, ensure that your text files are properly formatted and free of special characters that might interfere with the script.
Contact for Issues
If you run into any problems or have suggestions for improvements, please open an issue on the GitHub repository.