
from datetime import datetime

import requests



def      __lowerCAmelCase						(							UpperCAmelCase__				:      int       )  ->    bytes:
							lowerCamelCase_							  =					'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
							lowerCamelCase_							  =					requests.get(base_url + url       ).json()[0]['urls'][0]['src']
							return requests.get(SCREAMING_SNAKE_CASE_       ).content


if __name__ == "__main__":
		lowercase        =       input('''Enter Video/IGTV url: ''').strip()
		lowercase        =       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}.""")







from abc import ABC, abstractmethod
from argparse import ArgumentParser





class       __A(				UpperCAmelCase       ):

					@staticmethod
					@abstractmethod
					def    lowercase__      (	__UpperCamelCase					:     ArgumentParser   ):
												raise NotImplementedError()



					@abstractmethod
					def    lowercase__      (	self					:     Any   ):
												raise NotImplementedError()





