Geek7 commited on
Commit
fea1c03
·
1 Parent(s): 0cfdbdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import streamlit as st
2
- from instascrape import Instascraper
3
 
4
  hide_streamlit_style = """
5
  <style>
@@ -37,9 +37,8 @@ class InstagramDownloader:
37
  @staticmethod
38
  def download_content(post_url):
39
  with st.spinner("Downloading..."):
40
- with Instascraper() as insta:
41
- post = insta.post(post_url)
42
- post.download(dest="/Users/user/Pictures/Instagram")
43
  st.success("Downloaded the specified media")
44
 
45
  @classmethod
 
1
  import streamlit as st
2
+ from insta_reels import InstaReels
3
 
4
  hide_streamlit_style = """
5
  <style>
 
37
  @staticmethod
38
  def download_content(post_url):
39
  with st.spinner("Downloading..."):
40
+ insta_reels = InstaReels(post_url)
41
+ insta_reels.download("/Users/user/Pictures/Instagram")
 
42
  st.success("Downloaded the specified media")
43
 
44
  @classmethod