





from datetime import datetime

import requests
from bsa import BeautifulSoup

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

       """simple docstring"""





       __magic_name__      				=    0
       __magic_name__      				=    1

       for current_denominator in range(1 ,     limit + 1  ):
              __magic_name__      				=    current_denominator * numerator // denominator
              if current_denominator % denominator == 0:
                     current_numerator -= 1
              if current_numerator * max_denominator > current_denominator * max_numerator:
                     __magic_name__      				=    current_numerator
                     __magic_name__      				=    current_denominator
       return max_numerator


if __name__ == "__main__":
 print(solution(numerator=3, denominator=7, limit=1_0_0_0_0_0_0))