#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Mar 3 10:01:51 2024 @author: selbl """ import streamlit as st def main(): st.set_page_config( page_title="Whatsapp Conversation Analysis", page_icon=":bar_chart:", # You can use an emoji or a URL to an image #layout="wide", initial_sidebar_state="auto", ) st.title("Exporting a Whatsapp Conversation to a .txt File") st.text("The process to export data depends on whether you are using iPhone or Android") st.text("Instructions for both are below") st.header("Android", divider="blue") st.text("To work with your own data, first you have to open Whatsapp.") st.text("Then go to the desired chat and click on the three dots in the upper-right corner.") st.text("It should look like this:") image_path_1 = "Imgs/image_1.jpg" # Replace with the path to your image file st.image(image_path_1, caption="First Display", use_column_width=True) st.text("Afterwards, click on More to find the following display:") image_path_2 = "Imgs/image_2.jpg" # Replace with the path to your image file st.image(image_path_2, caption="Second Display", use_column_width=True) st.text("Choose your preferred way of sending the data to yourself and voilá!") st.header("iPhone", divider="blue") st.text("Open the chat you want to analyze and click the upper bar with the group name") image_path_ios_1 = "Imgs/image_ios_1.jpg" # Replace with the path to your image file st.image(image_path_ios_1, caption="First Display", use_column_width=True) st.text("A new view like the one in image below will appear, scroll down") image_path_ios_2 = "Imgs/image_ios_2.jpg" # Replace with the path to your image file st.image(image_path_ios_2, caption="Second Display", use_column_width=True) st.text("Click on export chat in the new view and select how to send the chat") image_path_ios_3 = "Imgs/image_ios_3.jpg" # Replace with the path to your image file st.image(image_path_ios_3, caption="Third Display", use_column_width=True) st.text("I reccommend sending it as an email") st.text("As opposed to Android, the conversation is sent compressed as a zip") st.text("Be sure to open it before feeding the text file to the program") if __name__ == "__main__": main()