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