





'''simple docstring'''






from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
     snake_case_     =	input("""Enter image url: """).strip()
     print(f'''Downloading image from {url} ...''')
     snake_case_     =	BeautifulSoup(requests.get(url).content, """html.parser""")
     # The image URL is in the content field of the first meta tag with property og:image
     snake_case_     =	soup.find("""meta""", {"""property""": """og:image"""})["""content"""]
     snake_case_     =	requests.get(image_url).content
     snake_case_     =	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'''






def 							_lowerCamelCase(  UpperCamelCase__    : Union[str, Any]    ,       UpperCamelCase__    : str		)		->  Optional[Any]:
    A       :       Tuple							=						0
    while b > 0:
        if b & 1:
            res += a

        a += a
        b >>= 1

    return res
def 							_lowerCamelCase(  UpperCamelCase__    : Any    ,       UpperCamelCase__    : Any    ,       UpperCamelCase__    : List[str]		)		->  Any:
    A       :       str							=						0
    while b > 0:
        if b & 1:
            A       :       List[Any]							=						((res % c) + (a % c)) % c

        a += a
        b >>= 1

    return res
