



"""simple docstring"""






from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
		_lowercase				:				Dict   		=		input("Enter image url: ").strip()
		print(f'Downloading image from {url} ...')
		_lowercase				:				str   		=		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				:				Optional[int]   		=		soup.find("meta", {"property": "og:image"})["content"]
		_lowercase				:				List[Any]   		=		requests.get(image_url).content
		_lowercase				:				str   		=		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"""






from ..utils import DummyObject, requires_backends

class  __SCREAMING_SNAKE_CASE			(   metaclass=lowerCAmelCase_     ):


					'''simple docstring'''





					_a         =							['onnx']



					def __init__( self							:						List[str],						*lowerCamelCase							:						Union[str, Any],						**lowerCamelCase							:						str  )->      Optional[int]:
								requires_backends(self,						['''onnx''']  )



					@classmethod
					def 	snake_case ( cls							:						List[str],						*lowerCamelCase							:						Any,						**lowerCamelCase							:						Union[str, Any]  )->      Optional[int]:
								requires_backends(cls,						['''onnx''']  )




					@classmethod
					def 	snake_case ( cls							:						Union[str, Any],						*lowerCamelCase							:						Tuple,						**lowerCamelCase							:						Tuple  )->      Optional[int]:
								requires_backends(cls,						['''onnx''']  )




