





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











# Function to print upper half of diamond (pyramid)


def     lowerCamelCase_	(      lowerCAmelCase:	Optional[Any]				)->		List[str]:
  for i in range(0    ,							lowerCAmelCase				):
    for _ in range(0    ,							n - i - 1				):  # printing spaces
      print(' '    ,							end=''				)
    for _ in range(0    ,							i + 1				):  # printing stars
      print('* '    ,							end=''				)
    print()


def     lowerCamelCase_	(      lowerCAmelCase:	Optional[int]				)->		List[Any]:
  for i in range(lowerCAmelCase    ,							0    ,							-1				):
    for _ in range(lowerCAmelCase    ,							0    ,							-1				):  # printing stars
      print('* '    ,							end=''				)
    print()
    for _ in range(n - i + 1    ,							0    ,							-1				):  # printing spaces
      print(' '    ,							end=''				)


def     lowerCamelCase_	(      lowerCAmelCase:	Tuple				)->		int:
  if n <= 0:
    print('       ...       ....        nothing printing :('				)
    return
  floyd(lowerCAmelCase				)  # upper half
  reverse_floyd(lowerCAmelCase				)  # lower half


if __name__ == "__main__":
      print(r"""| /\ | |- |  |-  |--| |\  /| |-""")
      print(r"""|/  \| |- |_ |_  |__| | \/ | |_""")
      lowerCAmelCase_						   =    1
      while K:
            lowerCAmelCase_						   =    int(input("""enter the number and , and see the magic : """))
            print()
            pretty_print(user_number)
            lowerCAmelCase_						   =    int(input("""press 0 to exit... and 1 to continue..."""))

      print("""Good Bye...""")




