SPACERUNNER99 commited on
Commit
1c45af0
·
verified ·
1 Parent(s): 0ec1af9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -12,6 +12,7 @@ from bidi.algorithm import get_display # pip install python-bidi
12
  from moviepy import VideoFileClip, TextClip, CompositeVideoClip, AudioFileClip
13
  import pysrt
14
  import instaloader
 
15
  api_key = "268976:66f4f58a2a905"
16
 
17
 
@@ -108,6 +109,7 @@ def insta_oneapi(url, api_key):
108
 
109
  result = response.json()
110
  try:
 
111
  response = requests.get(result["result"]['media'][0]["url"], stream=True)
112
  response.raise_for_status()
113
  with open("video.mp4", 'wb') as file:
 
12
  from moviepy import VideoFileClip, TextClip, CompositeVideoClip, AudioFileClip
13
  import pysrt
14
  import instaloader
15
+ import time
16
  api_key = "268976:66f4f58a2a905"
17
 
18
 
 
109
 
110
  result = response.json()
111
  try:
112
+ time.sleep(10)
113
  response = requests.get(result["result"]['media'][0]["url"], stream=True)
114
  response.raise_for_status()
115
  with open("video.mp4", 'wb') as file: