!!!NO LEECHERS!!!
Made this for personal use but it's a very simple program (21 lines) and requires no libraries. It takes the file you give it in the first input to read over and then it asks what email domain you want to keep for your results before finally writing to a new txt files
# Where your results will be written output_file = 'cleaned_combo.txt' # Combo txt file you want to clean file_name = input("Enter your file name: ") # Reading over combo file with open(file_name, 'r', encoding='utf-8') as file: data = file.readlines() line_count = len(data) # Asking what email domain to keep. Example = @gmail.com OR @yahoo.com email = input("What email domain do you want to keep: ").lower() # Write results to file with open(output_file, 'w', encoding='utf-8') as outfile: for line in data: if email in line: outfile.write(line) print(f"Lines not containing {email} have been removed. Cleaned data saved to {output_file}!")