"""simple docstring"""




from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
	_UpperCAmelCase            =		input("""Enter image url: """).strip()
	print(F"""Downloading image from {url} ...""")
	_UpperCAmelCase            =		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            =		soup.find("""meta""", {"""property""": """og:image"""})["""content"""]
	_UpperCAmelCase            =		requests.get(image_url).content
	_UpperCAmelCase            =		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}.""")







from math import isqrt




def     UpperCamelCase						(	__lowercase						:			int     ):
		'''simple docstring'''




		return all(number % divisor != 0 for divisor in range(2						,isqrt(__lowercase     ) + 1     )     )




def     UpperCamelCase						(	__lowercase						:			int = 10**6     ):
		'''simple docstring'''




		A_		:    Optional[Any]         =				0
		A_		:    List[str]         =				1
		A_		:    Dict         =				7
		while prime_candidate < max_prime:
				primes_count += is_prime(__lowercase     )

				cube_index += 1
				prime_candidate += 6 * cube_index

		return primes_count


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






