chrrel / whatsapp-exporter

A python script for extracting WhatsApp conversations from the app's SQLite database and exporting them as HTML or txt files.
GNU General Public License v3.0
93 stars 18 forks source link

How to filter by specific contact? #17

Closed rvega closed 8 months ago

rvega commented 8 months ago

Hi, thanks for all the great work here. Working great so far with Android and linux!

Question:

Which parts of the code should I edit in order to only export the history of a particular contact? I tried to follow the instructions here https://github.com/chrrel/whatsapp-exporter/issues/12 but the line numbers and the queries don't match what I see in .venv/.../Whatsapp_Chat_Exporter/*.py (I installed with pip using a venv)

chrrel commented 8 months ago

Hi @rvega, to filter for a specific contact you need to adapt the SQL queries. This is described in the Usage section of the README.

I guess you might want to double-check the the library you are working with as there is no directory called Whatsapp_Chat_Exporter in this project. Seems like you installed a different project: Whatsapp-Chat-Exporter.

rvega commented 8 months ago

My bad, thanks for the reply!