
"""simple docstring"""
import bsa
import requests





def 				lowerCamelCase_		(UpperCamelCase__	:	Dict							):
    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__	:	Optional[int] = 5							):
    _UpperCAmelCase							:						Optional[Any]       							=					int(float(__lowerCAmelCase							)							)
    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(__lowerCAmelCase							).content  , '''html.parser'''							)
    return tuple(
        get_movie_data_from_soup(__lowerCAmelCase							)
        for movie in source.find_all('''div'''  , class_='''lister-item mode-advanced'''							)							)


if __name__ == "__main__":
  import json

  _lowerCAmelCase					:Tuple  =      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__	:	List[Any]  , UpperCamelCase__	:	int							):
    sequence.append(UpperCamelCase__							)

    _UpperCAmelCase							:						str       							=					0
    while sequence[index] != target:
        index += 1

    sequence.pop()

    if index == len(UpperCamelCase__							):
        return None

    return index


if __name__ == "__main__":
  _lowerCAmelCase					:Dict  =      input('Enter numbers separated by comma:\n').strip()
  _lowerCAmelCase					:List[Any]  =      [int(item) for item in user_input.split(',')]

  _lowerCAmelCase					:int  =      input('Enter a single number to be found in the list:\n')
  _lowerCAmelCase					:List[Any]  =      int(target_input)
  _lowerCAmelCase					:Optional[int]  =      sentinel_linear_search(sequence, target)
  if result is not None:
    print(f"{target} found at positions: {result}")
  else:
    print('Not found')


