from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
					__UpperCamelCase		:       int									=     input('Enter image url: ').strip()
					print(f"""Downloading image from {url} ...""")
					__UpperCamelCase		:       Union[str, Any]									=     BeautifulSoup(requests.get(url).content, 'html.parser')
					# The image URL is in the content field of the first meta tag with property og:image
					__UpperCamelCase		:       Tuple									=     soup.find('meta', {'property': 'og:image'})['content']
					__UpperCamelCase		:       Tuple									=     requests.get(image_url).content
					__UpperCamelCase		:       List[Any]									=     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       A	(    _lowercase		,  _lowercase						):
						SCREAMING_SNAKE_CASE							:    Union[str, Any]							=							len(_lowercase						)
						SCREAMING_SNAKE_CASE							:    Any							=							len(_lowercase						)
						SCREAMING_SNAKE_CASE							:    Optional[int]							=							[[False for _ in range(m + 1						)] for _ in range(n + 1						)]
						SCREAMING_SNAKE_CASE							:    Union[str, Any]							=							True
						for i in range(_lowercase						):
												for j in range(m + 1						):
																		if dp[i][j]:
																								if j < m and a[i].upper() == b[j]:
																														SCREAMING_SNAKE_CASE							:    List[str]							=							True
																								if a[i].islower():
																														SCREAMING_SNAKE_CASE							:    Dict							=							True
						return dp[n][m]


if __name__ == "__main__":
					import doctest

					doctest.testmod()





