CodeAlpha_Task_Automation_with_python_scripts

πŸ“§ CodeAlpha_Task_Automation_with_python_scripts

This project is a simple Python script that reads a text file, extracts all valid email addresses using regular expressions (regex), removes duplicates, and saves them to a new file.

βœ… Features

πŸ“‚ Files Included

β–Ά How to Run

  1. Make sure you have Python installed on your system.
  2. Put the raw text (with emails) into a file named input.txt
  3. Run the script with this command:
python task_automation_with_python_scripts.py 

  1. Extracted emails will be saved in emails_extracted.txt.

πŸ§ͺ Sample Input and Output

input.txt

Hello Priya, contact us at hr@codealpha.com or support@domain.org.
Backup: test.email@college.edu, admin123@company.in

Output β†’ emails_extracted.txt

hr@codealpha.com
support@domain.org
test.email@college.edu
admin123@company.in