


'''simple docstring'''







from __future__ import annotations


def 	SCREAMING_SNAKE_CASE_					(  _UpperCAmelCase	:	int  )  ->			list[int]:
       _a    : Optional[Any]     					=2
       _a    : List[str]     					=[]
       while i * i <= n:
              if n % i:
                     i += 1
              else:
                     n //= i
                     factors.append(_UpperCAmelCase  )
       if n > 1:
              factors.append(_UpperCAmelCase  )
       return factors


if __name__ == "__main__":
   import doctest

   doctest.testmod()






'''simple docstring'''







from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
   A__:    Union[str, Any]					    =       input('''Enter image url: ''').strip()
   print(F"Downloading image from {url} ...")
   A__:    Tuple					    =       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__:    List[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}.")


