
'''simple docstring'''







from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
					lowercase    :							Tuple      =					input("Enter image url: ").strip()
					print(F'''Downloading image from {url} ...''')
					lowercase    :							Optional[int]      =					BeautifulSoup(requests.get(url).content, "html.parser")
					# The image URL is in the content field of the first meta tag with property og:image
					lowercase    :							Tuple      =					soup.find("meta", {"property": "og:image"})["content"]
					lowercase    :							Dict      =					requests.get(image_url).content
					lowercase    :							int      =					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}.''')



'''simple docstring'''







def 				SCREAMING_SNAKE_CASE__	(   __A = 1_000_000	)       ->	int:
	_snake_case   						=		limit + 1
	_snake_case   						=		[0] * limit
	for first_term in range(1			,				__A	):
		for n in range(__A			,				__A			,				__A	):
			_snake_case   						=		first_term + n / first_term
			if common_difference % 4:  # d must be divisble by 4
				continue
			else:
				common_difference /= 4
				if (
				    first_term > common_difference
				    and first_term < 4 * common_difference
				):  # since x,y,z are positive integers
					frequency[n] += 1  # so z>0 and a>d ,also 4d<a

	_snake_case   						=		sum(1 for x in frequency[1:limit] if x == 10	)

	return count


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

