Skip to content

Ashuman5/CodeAlpha_EmailExtractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

CodeAlpha Email Extractor

A Python automation project that extracts email addresses from a text file and saves the unique results into a separate output file.

Features

  • Reads text from input.txt
  • Finds valid email addresses using regular expressions
  • Removes duplicate email addresses
  • Saves extracted emails to extracted_emails.txt
  • Handles missing input files gracefully

Technologies Used

  • Python
  • re module
  • File handling

Project Structure

email_extractor project/
├── email_extractor.py
├── input.txt
├── extracted_emails.txt
└── Readme.md

How to Run

  1. Open the email_extractor project folder.
  2. Add text containing email addresses to input.txt.
  3. Run the script:
python email_extractor.py
  1. Check extracted_emails.txt for the extracted results.

Example

Input:

Output:

Author

Ashutosh Tiwari

About

Python automation script that extracts email addresses from text files using regular expressions.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages