





"""simple docstring"""


import bsa
import requests

def     UpperCamelCase       (SCREAMING_SNAKE_CASE    ):
						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     UpperCamelCase       (SCREAMING_SNAKE_CASE = 5    ):
						UpperCamelCase							:		Optional[int]							      = int(float(SCREAMING_SNAKE_CASE    )    )
						if num_movies < 1:
												return ()
						UpperCamelCase							:		str							      = (
						    """https://www.imdb.com/search/title?title_type="""
						    f"""feature&sort=num_votes,desc&count={num_movies}"""
						)
						UpperCamelCase							:		int							      = bsa.BeautifulSoup(requests.get(SCREAMING_SNAKE_CASE    ).content       ,    """html.parser"""    )
						return tuple(
						    get_movie_data_from_soup(SCREAMING_SNAKE_CASE    )
						    for movie in source.find_all("""div"""       ,    class_="""lister-item mode-advanced"""    )    )


if __name__ == "__main__":
		import json

		__magic_name__					:				Dict	= 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     UpperCamelCase       (SCREAMING_SNAKE_CASE    ):
						UpperCamelCase							:		Tuple							      = 0
						for plain_chr in plain_text:
												UpperCamelCase							:		List[str]							      = (
												    ord(SCREAMING_SNAKE_CASE    ) + (hash_value << 6) + (hash_value << 16) - hash_value
												)
						return hash_value



