


'''simple docstring'''







from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
 SCREAMING_SNAKE_CASE_      =			input('Enter image url: ').strip()
 print(f"""Downloading image from {url} ...""")
 SCREAMING_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
 SCREAMING_SNAKE_CASE_      =			soup.find('meta', {'property': 'og:image'})['content']
 SCREAMING_SNAKE_CASE_      =			requests.get(image_url).content
 SCREAMING_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        __lowercase						(      __SCREAMING_SNAKE_CASE				,  __SCREAMING_SNAKE_CASE		)				->					str:
     """simple docstring"""




     __a       =   """"""
     for word_or_phrase in separated:
          if not isinstance(__SCREAMING_SNAKE_CASE				,  __SCREAMING_SNAKE_CASE		):
               raise Exception("""join() accepts only strings to be joined"""		)
          joined += word_or_phrase + separator
     return joined.strip(__SCREAMING_SNAKE_CASE		)


if __name__ == "__main__":
 from doctest import testmod

 testmod()






