




from datetime import datetime

import requests
from bsa import BeautifulSoup

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









def       _SCREAMING_SNAKE_CASE      (							lowercase     :	Tuple     ,							lowercase     :	Dict     ,							lowercase     :	List[str]     ,							lowercase     :	Dict     ,							lowercase     :	Dict     ,							lowercase     :	List[str]					):


      '''simple docstring'''



      if index == r:
            for j in range(lowercase					):
                  print(data[j]     ,							end=' '					)
            print(' '					)
            return
      #  When no more elements are there to put in data[]
      if i >= n:
            return
      # current is included, put next at next location
      lowerCamelCase_							=   arr[i]
      combination_util(lowercase     ,							lowercase     ,							lowercase     ,							index + 1     ,							lowercase     ,							i + 1					)
      # current is excluded, replace it with
      # next (Note that i+1 is passed, but
      # index is not changed)
      combination_util(lowercase     ,							lowercase     ,							lowercase     ,							lowercase     ,							lowercase     ,							i + 1					)
      # The main function that prints all combinations
      # of size r in arr[] of size n. This function
      # mainly uses combinationUtil()

def       _SCREAMING_SNAKE_CASE      (							lowercase     :	int     ,							lowercase     :	Any     ,							lowercase     :	Tuple					):


      '''simple docstring'''



      lowerCamelCase_							=   [0] * r
      # Print all combination using temporary array 'data[]'
      combination_util(lowercase     ,							lowercase     ,							lowercase     ,							0     ,							lowercase     ,							0					)


if __name__ == "__main__":
 # Driver code to check the function above
 lowerCamelCase    :		int			   =       [10, 20, 30, 40, 50]
 print_combination(arr, len(arr), 3)
 # This code is contributed by Ambuj sahu



