Skip to content

Instantly share code, notes, and snippets.

@hiteshseth
hiteshseth / checkbreachwordsinemail.py
Created October 1, 2023 16:08
Type in the name of websites to check separated by comma, type in email and password to check if you ever received email with those names
import imaplib
import re
import csv
def search_emails(email_account, search_terms):
"""Searches an email account for emails containing the given search terms.
Args:
email_account: The email account to search.
search_terms: A list of search terms.