

from datetime import datetime

import requests
from bsa import BeautifulSoup

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




import math

lowerCAmelCase__	   = 1_0
lowerCAmelCase__	   = 7
lowerCAmelCase__	   = BALLS_PER_COLOUR * NUM_COLOURS



def 					lowerCAmelCase__							(	SCREAMING_SNAKE_CASE_:							int = 2_0      )			->      str:




				'''simple docstring'''





				A__        =			math.comb(SCREAMING_SNAKE_CASE_	,       SCREAMING_SNAKE_CASE_      )
				A__        =			math.comb(NUM_BALLS - BALLS_PER_COLOUR	,       SCREAMING_SNAKE_CASE_      )

				A__        =			NUM_COLOURS * (1 - missing_colour / total)

				return F'{result:.9f}'


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

