





'''simple docstring'''

from datetime import datetime

import requests
from bsa import BeautifulSoup

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










'''simple docstring'''

def 						UpperCamelCase    (							):
    A__    =      [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]

    A__    =      6
    A__    =      1
    A__    =      19_01

    A__    =      0

    while year < 20_01:
        day += 7

        if (year % 4 == 0 and year % 1_00 != 0) or (year % 4_00 == 0):
            if day > days_per_month[month - 1] and month != 2:
                month += 1
                A__    =      day - days_per_month[month - 2]
            elif day > 29 and month == 2:
                month += 1
                A__    =      day - 29
        else:
            if day > days_per_month[month - 1]:
                month += 1
                A__    =      day - days_per_month[month - 2]

        if month > 12:
            year += 1
            A__    =      1

        if year < 20_01 and day == 1:
            sundays += 1
    return sundays


if __name__ == "__main__":
  print(solution())



