File size: 3,871 Bytes
b1d820a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# app.py
import streamlit as st
import os

def main():
    st.set_page_config(
        page_title="Social Media Data Extractor",
        page_icon="πŸ”",
        layout="wide",
        initial_sidebar_state="expanded"
    )
    
    st.markdown("""
    <style>
        .stApp { background-color: #0e1117; color: white; }
        .main-header { background: linear-gradient(135deg, #1a2a6c, #b21f1f); color: white; padding: 2rem; border-radius: 10px; text-align: center; margin-bottom: 2rem; }
        .platform-card { background-color: #262730; padding: 1.5rem; border-radius: 10px; border-left: 4px solid; margin: 1rem 0; height: 280px; }
        .linkedin-card { border-left-color: #0077B5; }
        .facebook-card { border-left-color: #1877F2; }
        .facebook-pro-card { border-left-color: #FF6B35; }
        .feature-list { margin: 1rem 0; padding-left: 1.5rem; flex-grow: 1; }
        .api-key-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 1.5rem; border-radius: 10px; margin-bottom: 2rem; }
    </style>
    """, unsafe_allow_html=True)
    
    # Header
    st.markdown("""
    <div class="main-header">
        <h1 style="margin:0;">πŸ” Social Media Data Extractor</h1>
        <p style="margin:0; opacity: 0.9;">100% Free - No Local Setup Required</p>
    </div>
    """, unsafe_allow_html=True)

    # Platform selection
    st.markdown("## πŸš€ Launch Extractors")
    
    col1, col2, col3 = st.columns(3)
    
    with col1:
        st.markdown("""
        <div class="platform-card linkedin-card">
            <h3>πŸ’Ό LinkedIn Extractor</h3>
            <ul class="feature-list">
                <li>No login required</li>
                <li>Profile, company, and post analysis</li>
                <li>Quick data extraction</li>
                <li>AI-powered insights</li>
                <li>100% Free</li>
            </ul>
        </div>
        """, unsafe_allow_html=True)
        
        if st.button("πŸš€ Launch LinkedIn Extractor", key="linkedin_btn", use_container_width=True):
            st.switch_page("pages/linkedin_extractor.py")

    with col2:
        st.markdown("""
        <div class="platform-card facebook-card">
            <h3>πŸ“˜ Facebook Extractor</h3>
            <ul class="feature-list">
                <li>Manual login required</li>
                <li>Group post extraction</li>
                <li>Works with private groups</li>
                <li>AI conversation analysis</li>
                <li>100% Free</li>
            </ul>
        </div>
        """, unsafe_allow_html=True)
        
        if st.button("πŸš€ Launch Facebook Extractor", key="facebook_btn", use_container_width=True):
            st.switch_page("pages/facebook_extractor.py")
    
    with col3:
        st.markdown("""
        <div class="platform-card facebook-pro-card">
            <h3>πŸ”₯ Facebook Extractor 2.0</h3>
            <ul class="feature-list">
                <li>Enhanced Facebook data extraction</li>
                <li>More powerful algorithms</li>
                <li>Faster processing speed</li>
                <li>Advanced AI analysis</li>
                <li>100% Free</li>
            </ul>
        </div>
        """, unsafe_allow_html=True)
        
        if st.button("πŸš€ Launch Facebook Extractor 2.0", key="facebook_pro_btn", use_container_width=True):
            st.switch_page("pages/facebook_extractor_pro.py")

    # Instructions
    with st.expander("πŸ“‹ How to Use", expanded=True):
        st.markdown("""
        1. **Click any extractor to launch**
        2. **For LinkedIn:** Enter any LinkedIn URL
        3. **For Facebook:** Public data extraction available
        4. **AI Analysis:** Chat with extracted data
        
        **Note:** All extractors are 100% free and require no local setup.
        """)

if __name__ == "__main__":
    main()