<s>[INST] from bs4 import BeautifulSoup
import requests

def get_anims():
    url = "https://myanimelist.net/topanime.php"
    result = requests.get(url)
    soup = BeautifulSoup(result.text, 'html.parser')
    anime_list = []
    for anime in soup.find_all('tr', class_='ranking-list'):
        if anime.find('td', class_='rank') is not None:
            td = anime.find_all('td')
            name = td[2].find_all('a')
            title = name[1].text
            rank = anime.find('td', class_='rank').text
            score = td[3].text
            anime_list.append({'Title': title, 'Rank': rank, 'Score': score})
    return anime_list

def print_anims(anime_list):
    for anime in anime_list:
        print(f'{anime["Rank"]} - {anime["Title"]} - {anime["Score"]}')

def main():
    anime_list = get_anims()
    print_anims(anime_list)

main()

This is the code for a simple web scraping project that prints the top anime from myanimelist.net. How can I add a search function to search through this list?[/INST]