Персонажа Юстаса в фильме «Прямо из ниоткуда: Скуби-Ду! Встречает мужественного трусливого пса» озвучил актер и комик Джефф Бергман. Джефф Бергман известен своей озвучкой в различных мультсериалах и фильмах, в том числе озвучкой таких знаковых персонажей, как Багз Банни и Даффи Дак.
-
Python:
import requests url = "https://www.imdb.com/title/tt15343648/fullcredits" # IMDb page for the movie response = requests.get(url) content = response.text start_index = content.find('Eustace Bagge (voice)') # Find the starting index of the character's name start_index = content.rfind("name", 0, start_index) # Find the starting index of the actor's name end_index = content.find(",", start_index) # Find the ending index of the actor's name actor_name = content[start_index + 7:end_index] # Extract the actor's name print(actor_name) -
JavaScript (Node.js):
const axios = require('axios'); const cheerio = require('cheerio'); const url = 'https://www.imdb.com/title/tt15343648/fullcredits'; // IMDb page for the movie axios.get(url) .then(response => { const $ = cheerio.load(response.data); const characterName = 'Eustace Bagge (voice)'; const actorElement = $(`a:contains("${characterName}")`).closest('tr').next().find('td.name a'); const actorName = actorElement.text(); console.log(actorName); }) .catch(error => { console.log(error); });
Эти примеры демонстрируют, как очистить страницу полных титров фильма на IMDb и извлечь имя актера, связанное с персонажем Юстас Багге.