



"""simple docstring"""


import bsa
import requests

def 				_lowerCAmelCase   (     lowercase_		):
						return {
						    "name": soup.ha.a.text,
						    "genre": soup.find('span'	,			class_='genre'		).text.strip(),
						    "rating": soup.strong.text,
						    "page_link": F"""https://www.imdb.com{soup.a.get('href'		)}""",
						}

def 				_lowerCAmelCase   (     lowercase_ = 5		):
						UpperCAmelCase    =				int(float(lowercase_		)		)
						if num_movies < 1:
												return ()
						UpperCAmelCase    =				(
						    'https://www.imdb.com/search/title?title_type='
						    F"""feature&sort=num_votes,desc&count={num_movies}"""
						)
						UpperCAmelCase    =				bsa.BeautifulSoup(requests.get(lowercase_		).content	,			'html.parser'		)
						return tuple(
						    get_movie_data_from_soup(lowercase_		)
						    for movie in source.find_all('div'	,			class_='lister-item mode-advanced'		)		)


if __name__ == "__main__":
			import json

			snake_case_         = int(input("""How many movies would you like to see? """))
			print(
			    """, """.join(
			        json.dumps(movie, indent=4) for movie in get_imdb_top_movies(num_movies)
			    )
			)










"""simple docstring"""


def 				_lowerCAmelCase   (     lowercase_	,			lowercase_		):
						UpperCAmelCase    =				1.0
						for i in range(1	,			r + 1		):
												ret *= (n + 1 - i) / i
						return round(lowercase_		)

def 				_lowerCAmelCase   (     lowercase_		):
						return choose(8 + n	,			lowercase_		) + choose(9 + n	,			lowercase_		) - 10

def 				_lowerCAmelCase   (     lowercase_		):
						return sum(non_bouncy_exact(lowercase_		) for i in range(1	,			n + 1		)		)

def 				_lowerCAmelCase   (     lowercase_ = 100		):
						return non_bouncy_upto(lowercase_		)


if __name__ == "__main__":
				print(f'''{solution() = }''')





