Last active
April 13, 2020 14:12
-
-
Save StickmanNinja/f7ee4fae1eb34a9e8804eb9b72a7d118 to your computer and use it in GitHub Desktop.
A simple tool I use to sort emails by ISP.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import re | |
import json | |
gmail = 0 | |
yahoo = 0 | |
comcast = 0 | |
with open('newsegment.csv') as f: | |
lines = f.readlines() | |
isps = {} | |
for email in lines: | |
email = email.lower() | |
if "gmail" in email and gmail < 500: | |
gmail = gmail + 1 | |
print(email) | |
if "yahoo" in email and yahoo < 0: | |
pass | |
if "comcast" in email and comcast < 0: | |
pass | |
if "hotmail" in email: | |
pass | |
if "aol" in email: | |
pass | |
if "aol" not in email and "hotmail" not in email and "comcast" not in email and "yahoo" not in email: | |
print(email) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment