获取 IMDbPY 中的所有列表 movieID

get all list movieID in IMDbPY

我想从 IMDbPY 获取列表中的所有电影 ID。我想分析特定年份最受欢迎的流派、演员等。例如在 2014 年使用 scikit-learn 或其他库查找流行电影、流行演员、流派等。如何获取movieID列表?

似乎还不支持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"
}

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

它会给你一个 33k 电影的列表,link 作为一个 int 到 imdb id。 (建议:imdb 使用以两个 tt 开头的 id 和一个固定数字,所以你必须完成电影镜头给的 id,但这没什么大不了的)
然后你可以用这个 id 查询 omdb 并从 omdb 获取所有可用的信息或者在 imdb 网站上做一些网络抓取(omdb 更快但信息较少)。

如果你需要,我可以把我用 tmdb、imdb、omdb 和 ml-latest 制作的一些数据库转发给你。