




'''simple docstring'''

from datetime import datetime

import requests


def 						__magic_name__       (      __UpperCAmelCase      )						->   bytes:

					'''simple docstring'''

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


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


def 						__magic_name__       (      __UpperCAmelCase, __UpperCAmelCase      )						->   Image:

					'''simple docstring'''

					def brightness(__UpperCAmelCase      ) -> float:
										return 128 + level + (c - 128)

					if not -2_5_5.0 <= level <= 2_5_5.0:
										raise ValueError('''level must be between -255.0 (black) and 255.0 (white)'''      )
					return img.point(__UpperCAmelCase      )


if __name__ == "__main__":
							# Load image
							with Image.open('image_data/lena.jpg') as img:
														# Change brightness to 100
														a    :							int										=    change_brightness(img, 100)
														brigt_img.save('image_data/lena_brightness.png', format='png')

