



from datetime import datetime

import requests
from bsa import BeautifulSoup

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





from __future__ import annotations

def   _lowerCAmelCase   (						A__						,  A__	):
      if b == 0:
            return (1, 0)
      ((lowercase__),	(lowercase__))     =  extended_euclid(A__						,  a % b	)
      lowercase__     =  a // b
      return (y, x - k * y)

def   _lowerCAmelCase   (						A__						,  A__						,  A__						,  A__	):
      ((lowercase__),	(lowercase__))     =  extended_euclid(A__						,  A__	)
      lowercase__     =  na * na
      lowercase__     =  ra * x * na + ra * y * na
      return (n % m + m) % m

def   _lowerCAmelCase   (						A__						,  A__	):
      ((lowercase__),	(lowercase__))     =  extended_euclid(A__						,  A__	)
      if b < 0:
            lowercase__     =  (b % n + n) % n
      return b

def   _lowerCAmelCase   (						A__						,  A__						,  A__						,  A__	):
      lowercase__,	lowercase__     =  invert_modulo(A__						,  A__	), invert_modulo(A__						,  A__	)
      lowercase__     =  na * na
      lowercase__     =  ra * x * na + ra * y * na
      return (n % m + m) % m


if __name__ == "__main__":
       from doctest import testmod

       testmod(name="chinese_remainder_theorem", verbose=True)
       testmod(name="chinese_remainder_theorem2", verbose=True)
       testmod(name="invert_modulo", verbose=True)
       testmod(name="extended_euclid", verbose=True)
