Spaces:
Sleeping
Sleeping
Upload 2 files
Browse files- 2_📁_ExportConversations.py +30 -0
- 3_✉️_Contact.py +23 -0
2_📁_ExportConversations.py
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
"""
|
4 |
+
Created on Sun Mar 3 10:01:51 2024
|
5 |
+
|
6 |
+
@author: selbl
|
7 |
+
"""
|
8 |
+
|
9 |
+
import streamlit as st
|
10 |
+
|
11 |
+
def main():
|
12 |
+
st.set_page_config(
|
13 |
+
page_title="Whatsapp Conversation Analysis",
|
14 |
+
page_icon=":bar_chart:", # You can use an emoji or a URL to an image
|
15 |
+
#layout="wide",
|
16 |
+
initial_sidebar_state="auto",
|
17 |
+
)
|
18 |
+
st.title("Exporting a Whatsapp Conversation to a .txt File")
|
19 |
+
st.text("To work with your own data, first you have to open Whatsapp.")
|
20 |
+
st.text("Then go to the desired chat and click on the three dots in the upper-right corner.")
|
21 |
+
st.text("It should look like this:")
|
22 |
+
image_path_1 = "Imgs/image_1.jpg" # Replace with the path to your image file
|
23 |
+
st.image(image_path_1, caption="First Display", use_column_width=True)
|
24 |
+
st.text("Afterwards, click on More to find the following display:")
|
25 |
+
image_path_2 = "Imgs/image_2.jpg" # Replace with the path to your image file
|
26 |
+
st.image(image_path_2, caption="Second Display", use_column_width=True)
|
27 |
+
st.text("Choose your preferred way of sending the data to yourself and voilá!")
|
28 |
+
|
29 |
+
if __name__ == "__main__":
|
30 |
+
main()
|
3_✉️_Contact.py
ADDED
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
# -*- coding: utf-8 -*-
|
3 |
+
"""
|
4 |
+
Created on Sun Mar 3 10:01:51 2024
|
5 |
+
|
6 |
+
@author: selbl
|
7 |
+
"""
|
8 |
+
|
9 |
+
import streamlit as st
|
10 |
+
|
11 |
+
def main():
|
12 |
+
st.set_page_config(
|
13 |
+
page_title="Whatsapp Conversation Analysis",
|
14 |
+
page_icon=":bar_chart:", # You can use an emoji or a URL to an image
|
15 |
+
#layout="wide",
|
16 |
+
initial_sidebar_state="auto",
|
17 |
+
)
|
18 |
+
st.title("Contact")
|
19 |
+
st.text("You can refer to the Github repository for any feedback/comments")
|
20 |
+
st.write("[Repository](https://github.com/Selbl/WhatsappAnalysis)")
|
21 |
+
|
22 |
+
if __name__ == "__main__":
|
23 |
+
main()
|