Skip to content

Instantly share code, notes, and snippets.

@dvlop
dvlop / Mail7.net-email-checker.py
Created October 2, 2024 15:14
It processes your email list and sorts them into valid or invalid
import requests
from bs4 import BeautifulSoup
# Function to check the email on the mail7.net site
def check_email(email):
url = "https://mail7.net/emailchecker.html#emailCheck"
data = {'email': email, 'submit': 'Check it'}
headers = {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36',
'Content-Type': 'application/x-www-form-urlencoded'