"""simple docstring"""

import bsa
import requests


def    lowerCAmelCase			(__UpperCamelCase							:    bsa.element.ResultSet			):
							"""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			(__UpperCamelCase							:    int = 5			):
							"""simple docstring"""


							__UpperCamelCase							=int(float(__UpperCamelCase			)			)
							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(__UpperCamelCase			).content							,					'''html.parser'''			)
							return tuple(
							    get_movie_data_from_soup(__UpperCamelCase			)
							    for movie in source.find_all('''div'''							,					class_='''lister-item mode-advanced'''			)			)


if __name__ == "__main__":
				import json

				__lowercase    =				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"""

from collections import defaultdict


def    lowerCAmelCase			(__UpperCamelCase							:    int = 5			):
							"""simple docstring"""


							__UpperCamelCase							=defaultdict(__UpperCamelCase			)
							__UpperCamelCase							=0

							while True:
														__UpperCamelCase							=get_digits(__UpperCamelCase			)
														freqs[digits].append(__UpperCamelCase			)

														if len(freqs[digits]			) == max_base:
																					__UpperCamelCase							=freqs[digits][0] ** 3
																					return base

														num += 1


def    lowerCAmelCase			(__UpperCamelCase							:    int			):
							"""simple docstring"""


							return "".join(sorted(str(num**3			)			)			)


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



