|
import streamlit as st |
|
from insta_reels.reels_downloader import download |
|
|
|
def main(): |
|
st.title("Instagram Reels Downloader") |
|
|
|
|
|
link = st.text_input("Enter Instagram Reels Link:") |
|
|
|
|
|
output_path = st.text_input("Enter Output Path (e.g., videos/video.mp4):") |
|
|
|
|
|
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() |