Гунер.рф
Назад в Матвед
твой фильм по методу прохора желнина
🐍 Python
63
Автор расчёта:
Жмышенко Валерий
сон, кофе, настроение и степень прохорности определяют твой фильм из топ-500 Letterboxd. погрешность метода — сам метод.
Исходные данные для расчёта:
сон: 0–16 часов
кофе: 0–10 чашек
настроение: 0–10
метаирония: 0–10
прохорность: 0–10
другой фильм: измените число (0–9999)
Рассчитать
Результаты расчёта
Скачать Word (.docx)
Скачать Excel (.xlsx)
Скопировать для отчёта
Результаты скопированы в буфер!
# @input son: float = 6 | сон: 0–16 часов # @input kofe: int = 2 | кофе: 0–10 чашек # @input nastroenie: int = 5 | настроение: 0–10 # @input ironia: int = 8 | метаирония: 0–10 # @input prohor: int = 7 | прохорность: 0–10 # @input dubl: int = 0 | другой фильм: измените число (0–9999) LIST_DATE = "2026-09-28" LIST_URL = "https://letterboxd.com/official/list/letterboxds-top-500-films/" FILMS = [ ('Harakiri', 1962, 'harakiri'), ("The Human Condition III: A Soldier's Prayer", 1961, 'the-human-condition-iii-a-soldiers-prayer'), ('12 Angry Men', 1957, '12-angry-men'), ('Come and See', 1985, 'come-and-see'), ('High and Low', 1963, 'high-and-low'), ('Seven Samurai', 1954, 'seven-samurai'), ('The Shawshank Redemption', 1994, 'the-shawshank-redemption'), ('The Godfather Part II', 1974, 'the-godfather-part-ii'), ('The Human Condition I: No Greater Love', 1959, 'the-human-condition-i-no-greater-love'), ('City of God', 2002, 'city-of-god'), ('The Lord of the Rings: The Return of the King', 2003, 'the-lord-of-the-rings-the-return-of-the-king'), ("Schindler's List", 1993, 'schindlers-list'), ('Yi Yi', 2000, 'yi-yi'), ('Ikiru', 1952, 'ikiru'), ('Cinema Paradiso', 1988, 'cinema-paradiso'), ('Parasite', 2019, 'parasite-2019'), ('The Good, the Bad and the Ugly', 1966, 'the-good-the-bad-and-the-ugly'), ('The Godfather', 1972, 'the-godfather'), ('Ran', 1985, 'ran'), ('La Haine', 1995, 'la-haine'), ('Le Trou', 1960, 'le-trou'), ('Autumn Sonata', 1978, 'autumn-sonata'), ('The Dark Knight', 2008, 'the-dark-knight'), ('A Brighter Summer Day', 1991, 'a-brighter-summer-day'), ('The Human Condition II: Road to Eternity', 1959, 'the-human-condition-ii-road-to-eternity'), ('Grave of the Fireflies', 1988, 'grave-of-the-fireflies'), ('Neon Genesis Evangelion: The End of Evangelion', 1997, 'neon-genesis-evangelion-the-end-of-evangelion'), ('The Battle of Algiers', 1966, 'the-battle-of-algiers'), ('I Am Cuba', 1964, 'i-am-cuba'), ('GoodFellas', 1990, 'goodfellas'), ('The Cranes Are Flying', 1957, 'the-cranes-are-flying'), ('There Will Be Blood', 2007, 'there-will-be-blood'), ('Interstellar', 2014, 'interstellar'), ('Incendies', 2010, 'incendies'), ('Woman in the Dunes', 1964, 'woman-in-the-dunes'), ("It's a Wonderful Life", 1946, 'its-a-wonderful-life'), ('Paths of Glory', 1957, 'paths-of-glory'), ('The Lord of the Rings: The Two Towers', 2002, 'the-lord-of-the-rings-the-two-towers'), ('Andrei Rublev', 1966, 'andrei-rublev'), ('Sunset Boulevard', 1950, 'sunset-boulevard'), ('Apocalypse Now', 1979, 'apocalypse-now'), ('Spirited Away', 2001, 'spirited-away'), ('The Ascent', 1977, 'the-ascent'), ('Tokyo Story', 1953, 'tokyo-story'), ('The Apartment', 1960, 'the-apartment'), ('Portrait of a Lady on Fire', 2019, 'portrait-of-a-lady-on-fire'), ('Whiplash', 2014, 'whiplash-2014'), ('Memories of Murder', 2003, 'memories-of-murder'), ('Lawrence of Arabia', 1962, 'lawrence-of-arabia'), ('The Passion of Joan of Arc', 1928, 'the-passion-of-joan-of-arc'), ('Mishima: A Life in Four Chapters', 1985, 'mishima-a-life-in-four-chapters'), ('Swing Girls', 2004, 'swing-girls'), ('Life Is Beautiful', 1997, 'life-is-beautiful'), ('Nobody Knows', 2004, 'nobody-knows'), ('Witness for the Prosecution', 1957, 'witness-for-the-prosecution-1957'), ('Barry Lyndon', 1975, 'barry-lyndon'), ('The Red Shoes', 1948, 'the-red-shoes'), ('The Voice of Hind Rajab', 2025, 'the-voice-of-hind-rajab'), ('The Pianist', 2002, 'the-pianist'), ('Farewell My Concubine', 1993, 'farewell-my-concubine'), ('The Empire Strikes Back', 1980, 'the-empire-strikes-back'), ('Close-Up', 1990, 'close-up'), ('Sansho the Bailiff', 1954, 'sansho-the-bailiff'), ('Spider-Man: Across the Spider-Verse', 2023, 'spider-man-across-the-spider-verse'), ('Fanny and Alexander', 1982, 'fanny-and-alexander'), ('A Woman Under the Influence', 1974, 'a-woman-under-the-influence'), ('A Separation', 2011, 'a-separation'), ('Princess Mononoke', 1997, 'princess-mononoke'), ('Do the Right Thing', 1989, 'do-the-right-thing'), ('Spider-Man: Into the Spider-Verse', 2018, 'spider-man-into-the-spider-verse'), ('Love Exposure', 2008, 'love-exposure'), ('The Handmaiden', 2016, 'the-handmaiden'), ('The Lord of the Rings: The Fellowship of the Ring', 2001, 'the-lord-of-the-rings-the-fellowship-of-the-ring'), ('Good Will Hunting', 1997, 'good-will-hunting'), ('Once Upon a Time in the West', 1968, 'once-upon-a-time-in-the-west'), ('Paper Moon', 1973, 'paper-moon'), ('Nights of Cabiria', 1957, 'nights-of-cabiria'), ('Stalker', 1979, 'stalker'), ('Se7en', 1995, 'se7en'), ('An Elephant Sitting Still', 2018, 'an-elephant-sitting-still'), ('Red Beard', 1965, 'red-beard'), ('Apur Sansar', 1959, 'apur-sansar'), ('Z', 1969, 'z'), ('Dune: Part Two', 2024, 'dune-part-two'), ('Perfect Blue', 1997, 'perfect-blue'), ("One Flew Over the Cuckoo's Nest", 1975, 'one-flew-over-the-cuckoos-nest'), ('In the Mood for Love', 2000, 'in-the-mood-for-love'), ('Judgment at Nuremberg', 1961, 'judgment-at-nuremberg'), ('Persona', 1966, 'persona'), ('Amadeus', 1984, 'amadeus'), ('How to Make Millions Before Grandma Dies', 2024, 'how-to-make-millions-before-grandma-dies'), ('Inglourious Basterds', 2009, 'inglourious-basterds'), ('The Wages of Fear', 1953, 'the-wages-of-fear'), ('All About Eve', 1950, 'all-about-eve'), ("Where Is the Friend's House?", 1987, 'where-is-the-friends-house'), ('Scenes from a Marriage', 1974, 'scenes-from-a-marriage'), ('Rear Window', 1954, 'rear-window'), ("Howl's Moving Castle", 2004, 'howls-moving-castle'), ('Satantango', 1994, 'satantango'), ('Paris, Texas', 1984, 'paris-texas'), ('Oldboy', 2003, 'oldboy'), ('Sherlock Jr.', 1924, 'sherlock-jr'), ('Chainsaw Man – The Movie: Reze Arc', 2025, 'chainsaw-man-the-movie-reze-arc'), ('Dead Poets Society', 1989, 'dead-poets-society'), ("It's Such a Beautiful Day", 2012, 'its-such-a-beautiful-day'), ('Central Station', 1998, 'central-station'), ('Monster', 2023, 'monster-2023'), ('Twin Peaks: Fire Walk with Me', 1992, 'twin-peaks-fire-walk-with-me'), ('The Departed', 2006, 'the-departed'), ('The Thing', 1982, 'the-thing'), ("Singin' in the Rain", 1952, 'singin-in-the-rain'), ('The Odyssey', 2026, 'the-odyssey-2026'), ('Army of Shadows', 1969, 'army-of-shadows'), ('A Man Escaped', 1956, 'a-man-escaped'), ('Django Unchained', 2012, 'django-unchained'), ('Raise the Red Lantern', 1991, 'raise-the-red-lantern'), ('Prisoners', 2013, 'prisoners'), ('Eternity and a Day', 1998, 'eternity-and-a-day'), ('All That Jazz', 1979, 'all-that-jazz'), ('Still Walking', 2008, 'still-walking'), ('The Silence of the Lambs', 1991, 'the-silence-of-the-lambs'), ("I'm Still Here", 2024, 'im-still-here-2024'), ('A Special Day', 1977, 'a-special-day'), ('Puella Magi Madoka Magica the Movie Part III: Rebellion', 2013, 'puella-magi-madoka-magica-the-movie-part-iii-rebellion'), ('Das Boot', 1981, 'das-boot'), ('Ordet', 1955, 'ordet'), ('Three Colours: Red', 1994, 'three-colours-red'), ('The Young Girls of Rochefort', 1967, 'the-young-girls-of-rochefort'), ('To Be or Not to Be', 1942, 'to-be-or-not-to-be'), ('The Great Dictator', 1940, 'the-great-dictator'), ('Perfect Days', 2023, 'perfect-days-2023'), ('The Celebration', 1998, 'the-celebration'), ('Heat', 1995, 'heat-1995'), ('Late Spring', 1949, 'late-spring'), ('Taste of Cherry', 1997, 'taste-of-cherry'), ('Mommy', 2014, 'mommy-2014'), ('The Elephant Man', 1980, 'the-elephant-man'), ('Pather Panchali', 1955, 'pather-panchali'), ('Funeral Parade of Roses', 1969, 'funeral-parade-of-roses'), ('Wild Strawberries', 1957, 'wild-strawberries'), ('Brief Encounter', 1945, 'brief-encounter'), ('Rocco and His Brothers', 1960, 'rocco-and-his-brothers'), ('The Seventh Seal', 1957, 'the-seventh-seal'), ('Project Hail Mary', 2026, 'project-hail-mary'), ('Shoplifters', 2018, 'shoplifters'), ('City Lights', 1931, 'city-lights'), ('Dog Day Afternoon', 1975, 'dog-day-afternoon'), ('Landscape in the Mist', 1988, 'landscape-in-the-mist'), ('Before Sunset', 2004, 'before-sunset'), ('The Prestige', 2006, 'the-prestige'), ('Psycho', 1960, 'psycho'), ('Mirror', 1975, 'mirror'), ('La Bola Negra', 2026, 'la-bola-negra'), ('Wings of Desire', 1987, 'wings-of-desire'), ('Chinatown', 1974, 'chinatown'), ('The Green Mile', 1999, 'the-green-mile'), ('No Country for Old Men', 2007, 'no-country-for-old-men'), ('Children of Men', 2006, 'children-of-men'), ('Yojimbo', 1961, 'yojimbo'), ('Sing Sing', 2023, 'sing-sing-2023'), ('The Father', 2020, 'the-father-2020'), ('Fail Safe', 1964, 'fail-safe'), ('Tampopo', 1985, 'tampopo'), ('Fantastic Mr. Fox', 2009, 'fantastic-mr-fox'), ('Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb', 1964, 'dr-strangelove-or-how-i-learned-to-stop-worrying-and-love-the-bomb'), ('Underground', 1995, 'underground-1995'), ('The Treasure of the Sierra Madre', 1948, 'the-treasure-of-the-sierra-madre'), ('Malcolm X', 1992, 'malcolm-x-1992'), ('Terminator 2: Judgment Day', 1991, 'terminator-2-judgment-day'), ('Song of the Sea', 2014, 'song-of-the-sea'), ('Evangelion: 3.0+1.0 Thrice Upon a Time', 2021, 'evangelion-3010-thrice-upon-a-time'), ('The Cremator', 1969, 'the-cremator'), ('Before Sunrise', 1995, 'before-sunrise'), ('Life, and Nothing More…', 1992, 'life-and-nothing-more'), ('Werckmeister Harmonies', 2000, 'werckmeister-harmonies'), ('The 400 Blows', 1959, 'the-400-blows'), ('Samurai Rebellion', 1967, 'samurai-rebellion'), ('The Lives of Others', 2006, 'the-lives-of-others'), ('Dersu Uzala', 1975, 'dersu-uzala'), ('Secrets & Lies', 1996, 'secrets-lies'), ('The Iron Giant', 1999, 'the-iron-giant'), ('The Hunt', 2012, 'the-hunt-2012'), ('M', 1931, 'm'), ('Look Back', 2024, 'look-back-2024'), ('Some Like It Hot', 1959, 'some-like-it-hot'), ('The Fall', 2006, 'the-fall'), ('Ritual', 2000, 'ritual-2000'), ('Cure', 1997, 'cure'), ('Casablanca', 1942, 'casablanca'), ('Interstella 5555: The 5tory of the 5ecret 5tar 5ystem', 2003, 'interstella-5555-the-5tory-of-the-5ecret-5tar-5ystem'), ('Bicycle Thieves', 1948, 'bicycle-thieves'), ('Opening Night', 1977, 'opening-night'), ('The Man Who Shot Liberty Valance', 1962, 'the-man-who-shot-liberty-valance'), ('The Sacrifice', 1986, 'the-sacrifice'), ('Children of Paradise', 1945, 'children-of-paradise'), ('Akira', 1988, 'akira'), ('Ace in the Hole', 1951, 'ace-in-the-hole'), ('Sorcerer', 1977, 'sorcerer'), ('Kizumonogatari Part 3: Reiketsu', 2017, 'kizumonogatari-part-3-reiketsu'), ('Chungking Express', 1994, 'chungking-express'), ('Fight Club', 1999, 'fight-club'), ('Mary and Max', 2009, 'mary-and-max'), ("Who's Afraid of Virginia Woolf?", 1966, 'whos-afraid-of-virginia-woolf'), ('A Matter of Life and Death', 1946, 'a-matter-of-life-and-death'), ('La Notte', 1961, 'la-notte'), ('The Tale of The Princess Kaguya', 2013, 'the-tale-of-the-princess-kaguya'), ('Throne of Blood', 1957, 'throne-of-blood'), ('The Holdovers', 2023, 'the-holdovers'), ('Saving Private Ryan', 1998, 'saving-private-ryan'), ('I Swear', 2025, 'i-swear'), ('Network', 1976, 'network'), ('Tokyo Godfathers', 2003, 'tokyo-godfathers'), ('Kamikaze Girls', 2004, 'kamikaze-girls'), ('Rififi', 1955, 'rififi'), ('We All Loved Each Other So Much', 1974, 'we-all-loved-each-other-so-much'), ('Double Indemnity', 1944, 'double-indemnity'), ('Jeanne Dielman, 23, quai du Commerce, 1080 Bruxelles', 1975, 'jeanne-dielman-23-quai-du-commerce-1080-bruxelles'), ('Aparajito', 1956, 'aparajito'), ('Mulholland Drive', 2001, 'mulholland-drive'), ('Nostalgia', 1983, 'nostalgia-1983'), ('The Sound of Music', 1965, 'the-sound-of-music'), ('8½', 1963, '8-half'), ('The First Slam Dunk', 2022, 'the-first-slam-dunk'), ('The Night of the Hunter', 1955, 'the-night-of-the-hunter'), ('La Dolce Vita', 1960, 'la-dolce-vita'), ('Better Days', 2019, 'better-days-2019'), ('4 Months, 3 Weeks and 2 Days', 2007, '4-months-3-weeks-and-2-days'), ('For a Few Dollars More', 1965, 'for-a-few-dollars-more'), ('A Moment of Innocence', 1996, 'a-moment-of-innocence'), ('Ugetsu', 1953, 'ugetsu'), ('Wolfwalkers', 2020, 'wolfwalkers'), ('The Bridge on the River Kwai', 1957, 'the-bridge-on-the-river-kwai'), ('Il Sorpasso', 1962, 'il-sorpasso'), ('Anatomy of a Murder', 1959, 'anatomy-of-a-murder'), ('The Face of Another', 1966, 'the-face-of-another'), ('WALL·E', 2008, 'walle'), ('The Best Years of Our Lives', 1946, 'the-best-years-of-our-lives'), ('Alien', 1979, 'alien'), ('Marcel the Shell with Shoes On', 2021, 'marcel-the-shell-with-shoes-on-2021'), ('The Secret in Their Eyes', 2009, 'the-secret-in-their-eyes'), ('Umberto D.', 1952, 'umberto-d'), ('Modern Times', 1936, 'modern-times'), ('Quo Vadis, Aida?', 2020, 'quo-vadis-aida'), ('Vada Chennai', 2018, 'vada-chennai'), ('Dreams', 1990, 'dreams'), ('Inception', 2010, 'inception'), ('The King of Comedy', 1982, 'the-king-of-comedy'), ('Eternal Sunshine of the Spotless Mind', 2004, 'eternal-sunshine-of-the-spotless-mind'), ('Metropolis', 1927, 'metropolis'), ('Sweet Smell of Success', 1957, 'sweet-smell-of-success'), ('The Third Man', 1949, 'the-third-man'), ('Millennium Actress', 2001, 'millennium-actress'), ('Kes', 1969, 'kes'), ('Macario', 1960, 'macario'), ('Your Name.', 2016, 'your-name'), ('Everything Everywhere All at Once', 2022, 'everything-everywhere-all-at-once'), ('Capernaum', 2018, 'capernaum'), ('The Grand Budapest Hotel', 2014, 'the-grand-budapest-hotel'), ('Amour', 2012, 'amour'), ('A Taxi Driver', 2017, 'a-taxi-driver'), ('Fireworks', 1997, 'fireworks-1997'), ('Children of Heaven', 1997, 'children-of-heaven'), ('Magnolia', 1999, 'magnolia'), ('Joint Security Area', 2000, 'joint-security-area'), ('Son of the White Mare', 1981, 'son-of-the-white-mare'), ('Meiyazhagan', 2024, 'meiyazhagan'), ('Manila in the Claws of Light', 1975, 'manila-in-the-claws-of-light'), ('The Life and Death of Colonel Blimp', 1943, 'the-life-and-death-of-colonel-blimp'), ('A Silent Voice: The Movie', 2016, 'a-silent-voice-the-movie'), ('Hope', 2013, 'hope-2013'), ('Turtles Can Fly', 2004, 'turtles-can-fly'), ('The Devils', 1971, 'the-devils'), ('Winter Light', 1963, 'winter-light'), ('Trainspotting', 1996, 'trainspotting'), ('2001: A Space Odyssey', 1968, '2001-a-space-odyssey'), ('Poetry', 2010, 'poetry'), ('Persepolis', 2007, 'persepolis'), ('Pulp Fiction', 1994, 'pulp-fiction'), ('Thelma & Louise', 1991, 'thelma-louise'), ('To Live', 1994, 'to-live'), ('Mysterious Skin', 2004, 'mysterious-skin'), ('The Lion King', 1994, 'the-lion-king'), ('Kagemusha', 1980, 'kagemusha'), ('Ratatouille', 2007, 'ratatouille'), ('The Deer Hunter', 1978, 'the-deer-hunter'), ('Kwaidan', 1964, 'kwaidan'), ('Dancer in the Dark', 2000, 'dancer-in-the-dark'), ('Casino', 1995, 'casino'), ('The Truman Show', 1998, 'the-truman-show'), ('Once Upon a Time in America', 1984, 'once-upon-a-time-in-america'), ('Little Miss Sunshine', 2006, 'little-miss-sunshine'), ('Kill Bill: Vol. 1', 2003, 'kill-bill-vol-1'), ('Solaris', 1972, 'solaris'), ('Back to the Future', 1985, 'back-to-the-future'), ('The Lovers on the Bridge', 1991, 'the-lovers-on-the-bridge'), ("They Shoot Horses, Don't They?", 1969, 'they-shoot-horses-dont-they'), ('Sound of Metal', 2019, 'sound-of-metal'), ('The Young and the Damned', 1950, 'the-young-and-the-damned'), ('Le Samouraï', 1967, 'le-samourai'), ('Embrace of the Serpent', 2015, 'embrace-of-the-serpent'), ('Vertigo', 1958, 'vertigo'), ('HAIKYU!! The Dumpster Battle', 2024, 'haikyu-the-dumpster-battle'), ('The Shining', 1980, 'the-shining'), ('In the Name of the Father', 1993, 'in-the-name-of-the-father-1993'), ('An Autumn Afternoon', 1962, 'an-autumn-afternoon'), ('Nirvanna the Band the Show the Movie', 2025, 'nirvanna-the-band-the-show-the-movie'), ('Unforgiven', 1992, 'unforgiven'), ('Time of the Gypsies', 1988, 'time-of-the-gypsies'), ('Kumbalangi Nights', 2019, 'kumbalangi-nights'), ('Aftersun', 2022, 'aftersun'), ('Happy Together', 1997, 'happy-together-1997'), ('The Sting', 1973, 'the-sting'), ('The Wild Robot', 2024, 'the-wild-robot'), ('The White Ribbon', 2009, 'the-white-ribbon'), ('Drive My Car', 2021, 'drive-my-car'), ('Linda Linda Linda', 2005, 'linda-linda-linda'), ('Shame', 1968, 'shame'), ('RRR', 2022, 'rrr'), ("The Children's Hour", 1961, 'the-childrens-hour'), ('Raging Bull', 1980, 'raging-bull'), ("Rosemary's Baby", 1968, 'rosemarys-baby'), ('Comrades, Almost a Love Story', 1996, 'comrades-almost-a-love-story'), ('Le Cercle Rouge', 1970, 'le-cercle-rouge'), ('Night Is Short, Walk On Girl', 2017, 'night-is-short-walk-on-girl'), ('Boogie Nights', 1997, 'boogie-nights'), ("Azur & Asmar: The Princes' Quest", 2006, 'azur-asmar-the-princes-quest'), ('The Taste of Tea', 2004, 'the-taste-of-tea'), ('Y Tu Mamá También', 2001, 'y-tu-mama-tambien'), ('Roman Holiday', 1953, 'roman-holiday'), ('Gladiator', 2000, 'gladiator-2000'), ('The Last Picture Show', 1971, 'the-last-picture-show'), ('Shutter Island', 2010, 'shutter-island'), ('Au Revoir les Enfants', 1987, 'au-revoir-les-enfants'), ('Big World', 2024, 'big-world-2024'), ('Gangs of Wasseypur – Part 2', 2012, 'gangs-of-wasseypur-part-2'), ('A Face in the Crowd', 1957, 'a-face-in-the-crowd'), ('The Straight Story', 1999, 'the-straight-story'), ('Amélie', 2001, 'amelie'), ('Cria!', 1976, 'cria'), ('Investigation of a Citizen Above Suspicion', 1970, 'investigation-of-a-citizen-above-suspicion'), ('Nausicaä of the Valley of the Wind', 1984, 'nausicaa-of-the-valley-of-the-wind'), ('Hard Boiled', 1992, 'hard-boiled'), ('The Man Who Sleeps', 1974, 'the-man-who-sleeps'), ('Like Father, Like Son', 2013, 'like-father-like-son-2013'), ('North by Northwest', 1959, 'north-by-northwest'), ('What Ever Happened to Baby Jane?', 1962, 'what-ever-happened-to-baby-jane'), ('Good Morning', 1959, 'good-morning'), ('Joyland', 2022, 'joyland-2022'), ('Stand by Me', 1986, 'stand-by-me'), ('Hamnet', 2025, 'hamnet'), ('Coraline', 2009, 'coraline'), ('Full Metal Jacket', 1987, 'full-metal-jacket'), ('All About My Mother', 1999, 'all-about-my-mother'), ('Moonlight', 2016, 'moonlight-2016'), ('Grand Illusion', 1937, 'grand-illusion'), ('The Kid', 1921, 'the-kid'), ('Klaus', 2019, 'klaus'), ('My Neighbor Totoro', 1988, 'my-neighbor-totoro'), ('Little Women', 2019, 'little-women-2019'), ('Diabolique', 1955, 'diabolique-1955'), ('The Turin Horse', 2011, 'the-turin-horse'), ('Vampire Hunter D: Bloodlust', 2000, 'vampire-hunter-d-bloodlust'), ('Threads', 1984, 'threads'), ('PlayTime', 1967, 'playtime'), ('The Conformist', 1970, 'the-conformist'), ("Ivan's Childhood", 1962, 'ivans-childhood'), ('Whisper of the Heart', 1995, 'whisper-of-the-heart'), ('Rashomon', 1950, 'rashomon'), ("All the President's Men", 1976, 'all-the-presidents-men'), ('My Life as a Zucchini', 2016, 'my-life-as-a-zucchini'), ('Forrest Gump', 1994, 'forrest-gump'), ('Citizen Kane', 1941, 'citizen-kane'), ('Amores Perros', 2000, 'amores-perros'), ('The Long Goodbye', 1973, 'the-long-goodbye'), ('It Happened One Night', 1934, 'it-happened-one-night'), ('Tokyo Sonata', 2008, 'tokyo-sonata'), ('Winter Sleep', 2014, 'winter-sleep'), ('Ernest & Celestine', 2012, 'ernest-celestine'), ('Mind Game', 2004, 'mind-game'), ('Pixote', 1980, 'pixote'), ('A Prophet', 2009, 'a-prophet'), ('Blue Giant', 2023, 'blue-giant'), ('Memento', 2000, 'memento'), ('All Quiet on the Western Front', 1930, 'all-quiet-on-the-western-front'), ('The Matrix', 1999, 'the-matrix'), ('Memoir of a Snail', 2024, 'memoir-of-a-snail'), ('Lilya 4-ever', 2002, 'lilya-4-ever'), ('The Shop Around the Corner', 1940, 'the-shop-around-the-corner'), ('Dogville', 2003, 'dogville'), ('3 Idiots', 2009, '3-idiots'), ('Cabaret', 1972, 'cabaret'), ('Céline and Julie Go Boating', 1974, 'celine-and-julie-go-boating'), ('The Grapes of Wrath', 1940, 'the-grapes-of-wrath'), ('The General', 1926, 'the-general'), ('Cléo from 5 to 7', 1962, 'cleo-from-5-to-7'), ('In a Lonely Place', 1950, 'in-a-lonely-place'), ('Silenced', 2011, 'silenced'), ('Cries and Whispers', 1972, 'cries-and-whispers'), ('Day for Night', 1973, 'day-for-night'), ('The Cook, the Thief, His Wife & Her Lover', 1989, 'the-cook-the-thief-his-wife-her-lover'), ('12 Years a Slave', 2013, '12-years-a-slave'), ('Mulan', 1998, 'mulan'), ('Mother', 2009, 'mother-2009'), ('Touch of Evil', 1958, 'touch-of-evil'), ('Ali: Fear Eats the Soul', 1974, 'ali-fear-eats-the-soul'), ('The Killer', 1989, 'the-killer'), ('All About Lily Chou-Chou', 2001, 'all-about-lily-chou-chou'), ('Short Term 12', 2013, 'short-term-12-2013'), ('Sunrise: A Song of Two Humans', 1927, 'sunrise-a-song-of-two-humans'), ('American History X', 1998, 'american-history-x'), ('Butch Cassidy and the Sundance Kid', 1969, 'butch-cassidy-and-the-sundance-kid'), ('Carandiru', 2003, 'carandiru'), ('Rome, Open City', 1945, 'rome-open-city'), ('The Great Escape', 1963, 'the-great-escape'), ('Black Swan', 2010, 'black-swan'), ('Spring, Summer, Fall, Winter... and Spring', 2003, 'spring-summer-fall-winter-and-spring'), ('The Green Ray', 1986, 'the-green-ray'), ('Love Streams', 1984, 'love-streams'), ('Phantom Thread', 2017, 'phantom-thread'), ('Through the Olive Trees', 1994, 'through-the-olive-trees'), ('Who Killed Captain Alex?', 2010, 'who-killed-captain-alex'), ('Mad Max: Fury Road', 2015, 'mad-max-fury-road'), ("A Dog's Will", 2000, 'a-dogs-will'), ('Güeros', 2014, 'gueros'), ('To Wong Foo, Thanks for Everything! Julie Newmar', 1995, 'to-wong-foo-thanks-for-everything-julie-newmar'), ('Rio Bravo', 1959, 'rio-bravo'), ('A Bronx Tale', 1993, 'a-bronx-tale'), ('Cool Hand Luke', 1967, 'cool-hand-luke'), ('Brokeback Mountain', 2005, 'brokeback-mountain'), ('The Fire Within', 1963, 'the-fire-within'), ('The Ox-Bow Incident', 1943, 'the-ox-bow-incident'), ('On the Waterfront', 1954, 'on-the-waterfront'), ('Star Wars', 1977, 'star-wars'), ('Pride', 2014, 'pride-2014'), ('Mustang', 2015, 'mustang-2015'), ('La Strada', 1954, 'la-strada'), ('How to Train Your Dragon', 2010, 'how-to-train-your-dragon'), ('After Life', 1998, 'after-life'), ('Fallen Angels', 1995, 'fallen-angels'), ('Dial M for Murder', 1954, 'dial-m-for-murder'), ('Society of the Snow', 2023, 'society-of-the-snow'), ('The Intouchables', 2011, 'the-intouchables'), ('Pink Floyd: The Wall', 1982, 'pink-floyd-the-wall'), ('Past Lives', 2023, 'past-lives'), ('Oppenheimer', 2023, 'oppenheimer-2023'), ('Scarface', 1983, 'scarface-1983'), ('Raiders of the Lost Ark', 1981, 'raiders-of-the-lost-ark'), ('The Second Mother', 2015, 'the-second-mother'), ('The Return', 2003, 'the-return'), ('Nashville', 1975, 'nashville'), ('Mr. Smith Goes to Washington', 1939, 'mr-smith-goes-to-washington'), ('The Great Silence', 1968, 'the-great-silence'), ('The Virgin Spring', 1960, 'the-virgin-spring'), ('Synecdoche, New York', 2008, 'synecdoche-new-york'), ('12th Fail', 2023, '12th-fail'), ('I Dream in Another Language', 2017, 'i-dream-in-another-language'), ("Pan's Labyrinth", 2006, 'pans-labyrinth'), ('Sentimental Value', 2025, 'sentimental-value-2025'), ("My Father's Shadow", 2025, 'my-fathers-shadow-2025'), ('Harry Potter and the Prisoner of Azkaban', 2004, 'harry-potter-and-the-prisoner-of-azkaban'), ('Midnight Cowboy', 1969, 'midnight-cowboy'), ('The Spirit of the Beehive', 1973, 'the-spirit-of-the-beehive'), ('Love Letter', 1995, 'love-letter'), ('Monty Python and the Holy Grail', 1975, 'monty-python-and-the-holy-grail'), ('Punishment Park', 1971, 'punishment-park'), ('Phantom of the Paradise', 1974, 'phantom-of-the-paradise'), ('Le Bonheur', 1965, 'happiness-1965'), ("Kiki's Delivery Service", 1989, 'kikis-delivery-service'), ('Redline', 2009, 'redline'), ('The Hidden Fortress', 1958, 'the-hidden-fortress'), ('Pride & Prejudice', 2005, 'pride-prejudice'), ('The Umbrellas of Cherbourg', 1964, 'the-umbrellas-of-cherbourg'), ('Seconds', 1966, 'seconds'), ('Eat Drink Man Woman', 1994, 'eat-drink-man-woman'), ('Hiroshima Mon Amour', 1959, 'hiroshima-mon-amour'), ('The Exterminating Angel', 1962, 'the-exterminating-angel'), ("My Night at Maud's", 1969, 'my-night-at-mauds'), ("There's Still Tomorrow", 2023, 'theres-still-tomorrow'), ('Alice in the Cities', 1974, 'alice-in-the-cities'), ('The Sword of Doom', 1966, 'the-sword-of-doom'), ('Arrival', 2016, 'arrival-2016'), ('The Conversation', 1974, 'the-conversation'), ('Rope', 1948, 'rope'), ('Falling in Love Like in Movies', 2023, 'falling-in-love-like-in-movies'), ('The Leopard', 1963, 'the-leopard'), ('The Wolf House', 2018, 'the-wolf-house'), ('Through a Glass Darkly', 1961, 'through-a-glass-darkly'), ('Sanjuro', 1962, 'sanjuro'), ('Us and Them', 2018, 'us-and-them-2018'), ('The Gold Rush', 1925, 'the-gold-rush'), ('Princes and Princesses', 2000, 'princes-and-princesses'), ('Hundreds of Beavers', 2022, 'hundreds-of-beavers'), ('3 Women', 1977, '3-women'), ('Billy Elliot', 2000, 'billy-elliot'), ('About Elly', 2009, 'about-elly'), ('Close', 2022, 'close-2022'), ('Cowboy Bebop: The Movie', 2001, 'cowboy-bebop-the-movie'), ('Little Fish', 2020, 'little-fish-2020'), ('Nine Queens', 2000, 'nine-queens'), ('Reservoir Dogs', 1992, 'reservoir-dogs'), ] MEM = ( '+------------------------------------------------------------------------------+\n' '| Разбираешься в кино? |\n' '| |\n' '|**=*****#****+--:-+**%%+*+++++++**+++++++++%@%%%%@%%########==#**#######=+####|\n' '|*#=+*+**#**++#+----+*#@#+++++++++***+**++++%@*#%%%#++=---===-+#+*######*-*#***|\n' '|+*#*=*#****+--==--:::*#=++++++*+**+*****#+*%@%*#*=::::-::. .-++*######*-*#***|\n' '|+%%#====++=-+----::..+#:++++****#*#*+==##+%%@#*+:::-------::...-*##*****=++++=|\n' '|=%#*+=--==--+*=-+==-:*#-+**++++####*#*=*#+%%@%+:-----=--==-=-:::**+++==++==++=|\n' '|:###=-=--::::*+----+=##=+#*===+#%##*#*=**+%%@#---=------==-=---=++++++++++++++|\n' '|=##*::::::::.::---:::*#=+#+--:-#%##+*+-#*+%%@*==--==+++====-:+***+++++++++++++|\n' '|##*-:::::::::::::::::**:+*+-=:-##**+=--#*+%%%*==---=+++-=##*+****+++++++++++==|\n' '|##=:::::----::-:----:**:=#+-=:-####===+#++##%#+=-====-::-===-***++++++++++++==|\n' '|#*-:::::------------:**=*#+==-=##*+===+*#**#%%%===+*****++=*+**+++++=++++=+===|\n' '|#*----------------:-+*#%%#******+*++*+**#@%%%%@%++==+***++*%%####++++=++======|\n' '|#*---------==------*#%%%%%#***+*+*###%####@@%%@@%#++++++###%%%%%%#+===========|\n' '|======--====+=+=++*#*%%%@@%***+*%#*%##@#%%%@%@@@@@@%%%%@%%#%%%%%%%*====+=====-|\n' '|++++===-----::::##*%%%@@###*+##*#%#*%%%@%@%@@@@@@@@@@@@%%%%%%%@@%%%#+=++++=++=|\n' '|......... ..+%#%@@@@%%#**#%%%%@@%%@@%@@%%@@@@@@@@%%%%%%%%@@@@@%%#*++++++++|\n' '|------=====+++++****####*+*###%%%%%%@@@@@@@@%%@@@@@%%%%%%%%%@@@@%%%%%#=**+***+|\n' '|***********************##*####%%##%%@@@@@@@@@@%@@%%%%%%%@@@@@@@@%%%%%%#*+*****|\n' '|**+*********************#######%%#%@@@@@@@@@@@@@%%%%%%%%%@%#%@@@@%%%%%%#+***##|\n' '|+++++*+*********+***+*#*###**###%#%@@@@@@@@@@@@@@%%@@@@@@@#-#%@@@@%%%%%%######|\n' '|+++++++++++***+*******####%%%###%@@@@@@@@@@@@@@@@@@@@#++***+##%%%%%%%%@@%*#%*%|\n' '|+++++++*******++******#%%%%%####*########%##%%%%%##*=-::::--=#%%%%%%%%%@%*%%%%|\n' '|========++++++++*****#@@@@%%%####%####%###########*----=====+@@@@@@@@@@@%#%%##|\n' '|--------========+++++*@@%%%%@%%%%%%@%%%%%%%%%%%%%%%++*****+*%%%%%%%%%%%%###*#*|\n' '|:---------==--==+++++=#@@@@@@@@@@@@@@@@@@@@@@@%%#*********##***+++++*++++*****|\n' '|-----=------=-=---==++****#******************+:.......::-+++***+++++++***+++++|\n' '|==-------::--::-:-::----:::::::-----========+=------------==++=----:::-=#**+==|\n' '|-------:::..::--::----==-====-::--=======+++++========--=++==+---::...:-======|\n' '|---=-=--::::::---:-----=======---:---=-========*++++++-----=++***+++=--:.....:|\n' '|====----:-::::::-::----:-------:::---=--==++*#*+++======****++++++++*+++++=-::|\n' '|==-----::::.:--:-:.:::....:::.:::::----===+**#%####*****+++++===++++++++++++**|\n' '| |\n' '| Пошёл нахуй |\n' '+------------------------------------------------------------------------------+\n' ) def calculate(inputs): settings = [ ("son", 6, 0, 16, "сон"), ("kofe", 2, 0, 10, "кофе"), ("nastroenie", 5, 0, 10, "настроение"), ("ironia", 8, 0, 10, "метаирония"), ("prohor", 7, 0, 10, "прохорность"), ("dubl", 0, 0, 9999, "дубль"), ] values = {} for key, default, low, high, label in settings: try: value = float(str(inputs.get(key, default)).strip().replace(",", ".")) except (ValueError, TypeError): raise ValueError(label + ": нужно число") if not low <= value <= high: raise ValueError(label + ": от {} до {}".format(low, high)) if key != "son" and value != int(value): raise ValueError(label + ": нужно целое число") values[key] = value code = (int(round(values["son"] * 10)) * 97 + int(values["kofe"]) * 89 + int(values["nastroenie"]) * 193 + int(values["ironia"]) ** 2 * 43 + int(values["prohor"]) ** 3 * 17 + int(values["dubl"]) * 173) index = code % len(FILMS) title, year, slug = FILMS[index] film = "{} ({})".format(title, year) url = "https://letterboxd.com/film/" + slug + "/" verdict = "№{} из 500".format(index + 1) print(film) print("ПРОХОР ЖЕЛНИН ОПРЕДЕЛИЛ: " + verdict) print(url) print("") print(MEM.rstrip("\n")) return None