| |
| 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) |
| |
| |
| 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) |
|
|
| |
| 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") |
|
|
| |
| 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() |