A simple Python program that extracts messages sent by a specific user from multiple HTML files generated by snapchat. This tool helps users gather and analyze chat history easily.
- Extracts all messages from a specified user.
- Processes multiple HTML files in a designated directory.
- Saves extracted messages into a text file for easy access.
- Python 3.x
- BeautifulSoup4
- lxml (required, for better HTML parsing)
-
Clone the repository:
git clone https://github.com/your_username/chat_extractor.git Usage Place all your HTML files in a folder (e.g., html_files/). Update the directory_path variable in run1.py with the path to your folder containing the HTML files. Set the username variable to the user whose messages you want to extract (e.g., derek_c04). Run the script: bash
python run1.py
After execution, the extracted messages will be saved to extracted_texts.txt.