



'''simple docstring'''







import bsa
import requests







def  SCREAMING_SNAKE_CASE__ (				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  SCREAMING_SNAKE_CASE__ (				SCREAMING_SNAKE_CASE = 5     ):
		SCREAMING_SNAKE_CASE_						:int										=      int(float(SCREAMING_SNAKE_CASE     )     )
		if num_movies < 1:
				return ()
		SCREAMING_SNAKE_CASE_						:List[Any]										=      (
		    'https://www.imdb.com/search/title?title_type='
		    F'feature&sort=num_votes,desc&count={num_movies}'
		)
		SCREAMING_SNAKE_CASE_						:str										=      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

							SCREAMING_SNAKE_CASE__     : List[Any]				=   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   (    UpperCAmelCase  :				int   ,				UpperCAmelCase  :				int   ,				UpperCAmelCase  :				int					):


					'''simple docstring'''






					if power < 0:
										return -1
					base %= mod
					UpperCamelCase__		:     Any								=1

					while power > 0:
										if power & 1:
															UpperCamelCase__		:     Optional[Any]								=(result * base) % mod
										UpperCamelCase__		:     Union[str, Any]								=power >> 1
										UpperCamelCase__		:     Union[str, Any]								=(base * base) % mod

					return result



def 							_lowerCAmelCase   (    ):


					'''simple docstring'''






					print(modular_exponential(3   ,				200   ,				13					)					)


if __name__ == "__main__":
				import doctest

				doctest.testmod()

				main()


