


'''simple docstring'''






from datetime import datetime

import requests
from bsa import BeautifulSoup

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






def 	_A				(lowerCAmelCase__  :list		)   ->  list[Any]:




     '''simple docstring'''



     if not input_list:
          return []
     _a			      =							[input_list.count(lowerCAmelCase__		) for value in input_list]
     _a			      =							max(lowerCAmelCase__		)  # Gets the maximum count in the input list.
     # Gets values of modes
     return sorted({input_list[i] for i, value in enumerate(lowerCAmelCase__		) if value == y}		)


if __name__ == "__main__":
 import doctest

 doctest.testmod()

