
from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
						__a         =   input('Enter image url: ').strip()
						print(f"Downloading image from {url} ...")
						__a         =   BeautifulSoup(requests.get(url).content, 'html.parser')
						# The image URL is in the content field of the first meta tag with property og:image
						__a         =   soup.find('meta', {'property': 'og:image'})['content']
						__a         =   requests.get(image_url).content
						__a         =   f"{datetime.now():%Y-%m-%d_%H:%M:%S}.jpg"
						with open(file_name, 'wb') as fp:
												fp.write(image_data)
						print(f"Done. Image saved to disk as {file_name}.")







def 					_UpperCAmelCase				(						a__  ,	a__):

			'''simple docstring'''



			return x if y == 0 else greatest_common_divisor(a__  ,	x % y)


def 					_UpperCAmelCase				(						a__  ,	a__):

			'''simple docstring'''



			return (x * y) // greatest_common_divisor(a__  ,	a__)


def 					_UpperCAmelCase				(						a__ = 2_0):

			'''simple docstring'''



			a_						:						Any 							= 1
			for i in range(1  ,	n + 1):
						a_						:						Tuple 							= lcm(a__  ,	a__)
			return g


if __name__ == "__main__":
	print(F"""{solution() = }""")


