在IMDbPY中获取所有列表movieID

时间:2016-04-05 06:34:59

标签: python imdbpy

我想从IMDbPY获取列表中的所有movieID。我想分析一年中最受欢迎的流派,演员等。例如在2014年用scikit-learn或其他图书馆找到流行电影,流行演员,流派等。如何获取movieID列表?

2 个答案:

答案 0 :(得分:2)

转到此链接http://grouplens.org/datasets/movielens/并下载ml-latest-small.zip

它将为您提供33k电影的列表,其中包含指向imdb id的链接。 (建议:imdb使用以两个tt开头的id和一个固定数量的数字,所以你必须完成电影镜头给出的id,但这没什么大不了的)
然后你可以用这个id查询omdb并从omdb获取所有信息,或者在imdb网站上做一些web报废(omdb更快但信息更少)。

如果你愿意,我可以转发你用tmdb,imdb,omdb和ml-latest制作的数据库。

答案 1 :(得分:0)

似乎IMDbPY尚不支持获取所有列表, 如果你不依赖于此,那么

这可能有助于你

<强>用法

将所有数据请求发送至:

http://www.omdbapi.com/

海报API请求:

http://img.omdbapi.com/?apikey=[yourkey]&

示例:

http://www.omdbapi.com/?t=zootopia&y=2016&plot=full&r=json

<强>响应:

 {
Title: "Zootopia",
Year: "2016",
Rated: "PG",
Released: "04 Mar 2016",
Runtime: "108 min",
Genre: "Animation, Action, Adventure",
Director: "Byron Howard, Rich Moore, Jared Bush",
Writer: "Byron Howard (story), Jared Bush (story), Rich Moore (story), Josie Trinidad (story), Jim Reardon (story), Phil Johnston (story), Jennifer Lee (story), Jared Bush (screenplay), Phil Johnston (screenplay), Dan Fogelman (additional story material)",
Actors: "Ginnifer Goodwin, Jason Bateman, Idris Elba, Jenny Slate",
Plot: "From the largest elephant to the smallest shrew, the city of Zootopia is a mammal metropolis where various animals live and thrive. When Judy Hopps becomes the first rabbit to join the police force, she quickly learns how tough it is to enforce the law. Determined to prove herself, Judy jumps at the opportunity to solve a mysterious case. Unfortunately, that means working with Nick Wilde, a wily fox who makes her job even harder.",
Language: "English, Norwegian",
Country: "USA",
Awards: "N/A",
Poster: "http://ia.media-imdb.com/images/M/MV5BOTMyMjEyNzIzMV5BMl5BanBnXkFtZTgwNzIyNjU0NzE@._V1_SX300.jpg",
Metascore: "78",
imdbRating: "8.4",
imdbVotes: "42,414",
imdbID: "tt2948356",
Type: "movie",
Response: "True"
}