File size: 787 Bytes
1d549e9
d6e05c2
1d549e9
 
d6e05c2
 
 
 
1d549e9
d6e05c2
 
73319d4
1d549e9
d6e05c2
 
73319d4
d6e05c2
 
73319d4
 
1d549e9
d6e05c2
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
from insta_reels.reels_downloader import download

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

    # Input field for Instagram Reels link
    link = st.text_input("Enter Instagram Reels Link:")

    # Input field for output path
    output_path = st.text_input("Enter Output Path (e.g., videos/video.mp4):")

    # Button to trigger the download
    if st.button("Download Reels"):
        if link and output_path:
            try:
                download(link, output_path)
                st.success("Reels downloaded successfully!")
            except Exception as e:
                st.error(f"Error: {str(e)}")
        else:
            st.warning("Please enter valid Instagram Reels link and output path.")

if __name__ == "__main__":
    main()