【问题标题】:get all list movieID in IMDbPY获取IMDbPY中的所有列表movieID
【发布时间】:2021-02-16 06:18:38
【问题描述】:

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

【问题讨论】:

  • 你测试过 IMDbPY 吗?
  • 试试movieLens,他们得到了一个很好的电影列表。选择 ml-latest csv
  • 不,我不测试 IMDbPY,我想在 python 上找到流行的电影、演员、流派等。

标签: python imdbpy


【解决方案1】:

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

它将为您提供 33k 电影的列表,并带有指向 imdb id 的 int 链接。 (建议:imdb 使用以两个 tt 开头的 id 和一个固定数字,因此您必须完成电影镜头给出的 id,但这没什么大不了的)
然后,您可以使用此 id 查询 omdb 并从 omdb 获取所有可用信息,或者在 imdb 网站上进行一些网络抓取(omdb 速度更快但信息较少)。

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

【讨论】:

  • @GoldGshok 如果您使用此解决方案,您能否验证答案?谢谢!
  • 如果您想尝试查找更多最近的电影,通常情况下,imdb 的 id 只会增加,因此较高的将是最近的,但不幸的是,并非总是如此跨度>
  • 这还是没有办法吗?我希望建立一个由电影、演员、导演等组成的图形数据库。最好的方法是什么?
【解决方案2】:

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

【讨论】:

  • 不是他问的,他要的是所有id的列表
  • ofc 有,有电影镜头(但你不能不费吹灰之力就得到 IMDB 中的所有电影)
  • 它可以工作,但我在文件中找到 all_ID 或 base,因为我想在 python 中工作并分析有关电影的大数据。
  • omdb 将私有化...仅供参考
猜你喜欢
  • 2015-06-20
  • 2021-07-05
  • 2016-01-03
  • 2010-09-17
  • 2010-10-18
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多