


'''simple docstring'''






from datetime import datetime

import requests







def 							UpperCamelCase_     (       A__   :  str   ):
  '''simple docstring'''





  lowerCAmelCase_     : str     =  """https://downloadgram.net/wp-json/wppress/video-downloader/video?url="""
  lowerCAmelCase_     : Tuple     =  requests.get(base_url + url   ).json()[0]["""urls"""][0]["""src"""]
  return requests.get(A__   ).content


if __name__ == "__main__":
  __A   :    Dict											= input("Enter Video/IGTV url: ").strip()
  __A   :    Any											= F'''{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4'''
  with open(file_name, "wb") as fp:
    fp.write(download_video(url))
  print(F'''Done. Video saved to disk as {file_name}.''')







'''simple docstring'''






from ...utils import is_torch_available, is_transformers_available


if is_transformers_available() and is_torch_available():
  from .pipeline_vq_diffusion import LearnedClassifierFreeSamplingEmbeddings, VQDiffusionPipeline



