WpToHtml extracts WhatsApp messages containing a specific keyword and displays them in an HTML format. The project utilizes web scraping and automation tools to process chat data efficiently.
- Extracts messages from a WhatsApp chat export.
- Filters messages based on a user-specified keyword.
- Displays messages in a styled HTML page using Bootstrap.
- Uses Flask to serve a simple web interface.
- Uses Selenium for automation (requires
chromedriver.exe).
- Python
- Flask
- Tkinter
- Selenium
- BeatifulSoup
- Chrome WebDriver
- Clone this repository:
git clone https://github.com/doganenes/WpToHtml.git cd WpToHtml - Install dependencies:
pip install flask selenium
- Ensure
chromedriver.exeis in the project directory.
- Export your WhatsApp chat as a
.htmlfile. - Place the exported chat file in the project directory.
- Start the Flask web server:
python scraper.py
- Open your browser and go to
http://127.0.0.1:5000/. - Enter keywords in the input field and click "Search messages" to view filtered messages.
Feel free to contribute by submitting pull requests or reporting issues.
This project is licensed under the MIT License.