This Python script efficiently merges multiple wordlists into a single, de-duplicated output file. It leverages the rich library for enhanced console output, providing informative messages and error handling.
- Merges multiple wordlists: Combine several wordlists into a single comprehensive list.
- De-duplicates entries: Removes duplicate words, ensuring a clean output.
- Converts words to lowercase: Ensures case-insensitive word matching.
- Rich console output: Provides clear and visually appealing messages (optional).
- Error handling: Validates input file existence and guides users appropriately.
- Ensure you have Python 3 installed (https://www.python.org/downloads/).
- Install the
richlibrary using pip:
pip install rich
There are two ways to use this script:
- Run the script with no arguments:
python wordlist_merger.py
- You'll be prompted to enter the path to each wordlist one by one. Press Enter to finish.
- Specify the desired output file name.
- Run the script with the following arguments:
python wordlist_merger.py [output_file] [wordlist1] [wordlist2] ...
output_file: The path to the file where the merged wordlist will be saved.wordlist1,wordlist2, etc.: The paths to the wordlists you want to merge.
python wordlist_merger.py merged_words.txt wordlist1.txt wordlist2.txt
This merges wordlist1.txt and wordlist2.txt into merged_words.txt.
This script attempts to use the rich library for colorful and user-friendly output. If your terminal doesn't support "True Color," you'll be notified.
- The script ensures that the output file is not a directory itself. If you provide a directory path, it will create a file named merged_wordlist.txt within that directory.
- The merged wordlist is sorted alphabetically and saved in a clean format.
Feel free to report any issues or suggest improvements. You can also contribute to the project by forking it on GitHub (if applicable).