File size: 737 Bytes
1d549e9
6696238
1d549e9
6696238
 
 
 
 
 
d6e05c2
6696238
 
1d549e9
6696238
 
73319d4
1d549e9
6696238
 
 
1d549e9
6696238
1d549e9
 
 
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
import streamlit as st
import instaloader

def download_instagram_profile(username):
    try:
        instaloader.Instaloader().download_profile(username, profile_pic_only=False)
        st.success(f"Profile downloaded successfully for {username}!")
    except Exception as e:
        st.error(f"Error: {str(e)}")

def main():
    st.title("Instagram Profile Downloader")

    # Input field for Instagram username
    username = st.text_input("Enter Instagram Username:")

    # Button to trigger the download
    if st.button("Download Profile"):
        if username:
            download_instagram_profile(username)
        else:
            st.warning("Please enter a valid Instagram username.")

if __name__ == "__main__":
    main()