
"""simple docstring"""







from datetime import datetime

import requests
from bsa import BeautifulSoup

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







import warnings
from functools import wraps
from typing import Callable
def    __lowerCAmelCase    (_UpperCamelCase		):

	@wraps(_UpperCamelCase		)
	def _inner_fn(*_UpperCamelCase	,  **_UpperCamelCase		):
		warnings.warn(
		    (F"'{fn.__name__}' is experimental and might be subject to breaking changes in the future.")	,  _UpperCamelCase	,  )
		return fn(*_UpperCamelCase	,  **_UpperCamelCase		)

	return _inner_fn