



'''simple docstring'''



from datetime import datetime

import requests



def   _A       (   _lowerCAmelCase					):



							"""simple docstring"""



							__lowercase       	='https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
							__lowercase       	=requests.get(base_url + url					).json()[0]['urls'][0]['src']
							return requests.get(_lowerCAmelCase					).content


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



def   _A       (   _lowerCAmelCase					):



							"""simple docstring"""



							if number > 0:
														raise ValueError('input must be a negative integer'					)
							__lowercase       	=len(bin(_lowerCAmelCase					)[3:]					)
							__lowercase       	=bin(abs(_lowerCAmelCase					) - (1 << binary_number_length)					)[3:]
							__lowercase       	=(
							    (
							        '1'
							        + '0' * (binary_number_length - len(_lowerCAmelCase					))
							        + twos_complement_number
							    )
							    if number < 0
							    else '0'
							)
							return "0b" + twos_complement_number


if __name__ == "__main__":
		import doctest

		doctest.testmod()



