





from datetime import datetime

import requests
from bsa import BeautifulSoup

if __name__ == "__main__":
					A   : Union[str, Any]			=				input('''Enter image url: ''').strip()
					print(F'''Downloading image from {url} ...''')
					A   : Dict			=				BeautifulSoup(requests.get(url).content, '''html.parser''')
					# The image URL is in the content field of the first meta tag with property og:image
					A   : Union[str, Any]			=				soup.find('''meta''', {'''property''': '''og:image'''})['''content''']
					A   : Optional[int]			=				requests.get(image_url).content
					A   : Tuple			=				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        __lowerCamelCase (							__a       :float   ,					__a       :list[float]   )		->    float:






		"""simple docstring"""

		if discount_rate < 0:
				raise ValueError("""Discount rate cannot be negative"""   )
		if not cash_flows:
				raise ValueError("""Cash flows list cannot be empty"""   )
		A__  				=       sum(
		    cash_flow / ((1 + discount_rate) ** i) for i, cash_flow in enumerate(__a   )   )
		return round(__a   ,					ndigits=2   )


if __name__ == "__main__":
					import doctest

					doctest.testmod()



