





"""simple docstring"""


from ..utils import DummyObject, requires_backends



class      __SCREAMING_SNAKE_CASE    (						metaclass=_UpperCamelCase   ):







  '''simple docstring'''


  SCREAMING_SNAKE_CASE__							:int	     =					["torch", "transformers", "onnx"]

  def __init__(		self   :       Optional[int]					,   *__a   :       List[str]					,   **__a   :       str	)		->				int:
        requires_backends(self					,   ["torch", "transformers", "onnx"]	)

  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Optional[int]					,   *__a   :       Dict					,   **__a   :       Dict	)		->				Optional[Any]:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)


  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Any					,   *__a   :       Any					,   **__a   :       List[str]	)		->				List[Any]:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)





class      __SCREAMING_SNAKE_CASE    (						metaclass=_UpperCamelCase   ):







  '''simple docstring'''


  SCREAMING_SNAKE_CASE__							:str	     =					["torch", "transformers", "onnx"]

  def __init__(		self   :       Tuple					,   *__a   :       List[str]					,   **__a   :       List[str]	)		->				Union[str, Any]:
        requires_backends(self					,   ["torch", "transformers", "onnx"]	)

  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       List[Any]					,   *__a   :       List[Any]					,   **__a   :       Any	)		->				List[Any]:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)


  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Optional[int]					,   *__a   :       str					,   **__a   :       Any	)		->				Union[str, Any]:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)





class      __SCREAMING_SNAKE_CASE    (						metaclass=_UpperCamelCase   ):







  '''simple docstring'''


  SCREAMING_SNAKE_CASE__							:Tuple	     =					["torch", "transformers", "onnx"]

  def __init__(		self   :       Optional[Any]					,   *__a   :       int					,   **__a   :       int	)		->				int:
        requires_backends(self					,   ["torch", "transformers", "onnx"]	)

  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Optional[Any]					,   *__a   :       Tuple					,   **__a   :       Union[str, Any]	)		->				int:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)


  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Dict					,   *__a   :       Union[str, Any]					,   **__a   :       List[str]	)		->				Optional[int]:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)





class      __SCREAMING_SNAKE_CASE    (						metaclass=_UpperCamelCase   ):







  '''simple docstring'''


  SCREAMING_SNAKE_CASE__							:Optional[int]	     =					["torch", "transformers", "onnx"]

  def __init__(		self   :       Union[str, Any]					,   *__a   :       List[Any]					,   **__a   :       Optional[Any]	)		->				Optional[Any]:
        requires_backends(self					,   ["torch", "transformers", "onnx"]	)

  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       List[Any]					,   *__a   :       Tuple					,   **__a   :       Optional[Any]	)		->				str:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)


  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       str					,   *__a   :       Optional[Any]					,   **__a   :       str	)		->				Union[str, Any]:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)





class      __SCREAMING_SNAKE_CASE    (						metaclass=_UpperCamelCase   ):







  '''simple docstring'''


  SCREAMING_SNAKE_CASE__							:int	     =					["torch", "transformers", "onnx"]

  def __init__(		self   :       Optional[int]					,   *__a   :       Optional[int]					,   **__a   :       Dict	)		->				Tuple:
        requires_backends(self					,   ["torch", "transformers", "onnx"]	)

  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Tuple					,   *__a   :       Optional[Any]					,   **__a   :       List[str]	)		->				List[str]:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)


  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Optional[Any]					,   *__a   :       Optional[Any]					,   **__a   :       Tuple	)		->				Optional[int]:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)





class      __SCREAMING_SNAKE_CASE    (						metaclass=_UpperCamelCase   ):







  '''simple docstring'''


  SCREAMING_SNAKE_CASE__							:int	     =					["torch", "transformers", "onnx"]

  def __init__(		self   :       str					,   *__a   :       List[str]					,   **__a   :       Union[str, Any]	)		->				List[Any]:
        requires_backends(self					,   ["torch", "transformers", "onnx"]	)

  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Union[str, Any]					,   *__a   :       Optional[Any]					,   **__a   :       List[Any]	)		->				Tuple:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)


  @classmethod
  def    __SCREAMING_SNAKE_CASE				(		cls   :       Optional[int]					,   *__a   :       Optional[Any]					,   **__a   :       Optional[int]	)		->				str:
        requires_backends(cls					,   ["torch", "transformers", "onnx"]	)







"""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}.""")
