


import bsa
import requests






def 	lowerCamelCase_       (			_a			):




		"""simple docstring"""






		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_       (			_a = 5			):




		"""simple docstring"""






		lowerCAmelCase__  :     Dict       	=   int(float(_a			)			)
		if num_movies < 1:
				return ()
		lowerCAmelCase__  :     Dict       	=   (
		    '''https://www.imdb.com/search/title?title_type='''
		    f'feature&sort=num_votes,desc&count={num_movies}'
		)
		lowerCAmelCase__  :     Union[str, Any]       	=   bsa.BeautifulSoup(requests.get(_a			).content      ,  '''html.parser'''			)
		return tuple(
		    get_movie_data_from_soup(_a			)
		    for movie in source.find_all('''div'''      ,  class_='''lister-item mode-advanced'''			)			)


if __name__ == "__main__":
		import json

		lowerCamelCase		=						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)
		    )
		)








from itertools import combinations_with_replacement






def 	lowerCamelCase_       (			_a = 100			):




		"""simple docstring"""






		lowerCAmelCase__  :     list[int]       	=   [*list(range(1      ,  21			)			), 25]
		lowerCAmelCase__  :     list[int]       	=   [2 * x for x in range(1      ,  21			)] + [50]
		lowerCAmelCase__  :     list[int]       	=   [3 * x for x in range(1      ,  21			)]
		lowerCAmelCase__  :     list[int]       	=   singles + doubles + triples + [0]

		lowerCAmelCase__  :     int       	=   0
		lowerCAmelCase__  :     int
		lowerCAmelCase__  :     int
		lowerCAmelCase__  :     int
		lowerCAmelCase__  :     int

		for double in doubles:
				for throwa, throwa in combinations_with_replacement(_a      ,  2			):
						lowerCAmelCase__  :     Dict       	=   double + throwa + throwa
						if checkout_total < limit:
								num_checkouts += 1

		return num_checkouts


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




