select_input_text():
This function open a file dialog, allowing the user to select your initial combo.
The selected file's contents are read and returned as a list of lines.
write_to_file(file_path, lines):
This function takes a file path and a list of lines and writes the lines to the specified file.
1. Filter_text(input_text):- Asks the user to enter a keyword.
- Filters lines from the input text that contain the keyword.
- Writes the filtered lines to a file named "Filtered.txt". (good to filter a certain domain from your main combo exp: hotmail,gmail.. only)
2. remove_filtered_text(input_text):
Asks the user to enter a keyword.
- Removes lines from the input text that contain the keyword.
- Writes the filtered lines to a file named "Disfiltered.txt".
3. sort_alphabetically(input_text):- Sorts the input text alphabetically.
- Writes the sorted lines to a file named "SorterA-Z.txt".
4. email_format(input_text):- Extracts the emails from the combos you have.
- Writes the extracted parts to a file named "Emails.txt".
5. clean_duplicates(input_text):- Identifies and removes duplicate lines from the input text.
- Writes the unique lines to a file named "NoDuplicates.txt".
- Prints the number of duplicates found.
6. add_credits(input_text):- Asks the user to enter credits.
- Appends the entered credits to each line in the input text.
- Writes the updated text to a file named "Credits.txt".
7. analyze_text(input_text):
Performs analysis on the input text:
- Number of lines
- Number of duplicates
- Number of empty lines
- Number of lines with invalid combo format.
- Number of unique domains based on lines.
- Prints the analysis results.
8. copy_lines(input_text):
Asks the user to enter the starting and ending line numbers.
- Copies the specified lines from the input text.
- Writes the copied lines to a file named "CopyinFromLineToLine.txt".
9. keyword_counter(input_text):
Asks the user to enter a keyword.
- Counts the occurrences of the keyword in the input text & prints the number of occurrences.
10. divide_text(input_text):
Asks the user to enter the number of parts to divide the text into.
- Divides the input text into equal parts.
- Writes each part to a file (e.g., "part1_divided.txt", "part2_divided.txt").
11. Normalizing function :
Takes the email & pass from long and messy texts. (good for recycling combos from logs too)
- main():
- Initiates the program, prompting the user to enter lines of text until they type "done."
- Displays the main menu with options.
- Executes the chosen function based on the user's input.
- Repeats the process until the user chooses to exit.