首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >获取IMDbPY中的所有list IMDbPY

获取IMDbPY中的所有list IMDbPY
EN

Stack Overflow用户
提问于 2016-04-05 06:34:59
回答 2查看 4.4K关注 0票数 1

我要把所有的movieID都列在IMDbPY的名单上。我想得到分析最流行的体裁,演员等在给定的一年。例如,在2014年,你可以通过科学学习或其他图书馆找到流行电影、流行演员、流派等。如何获取movieID列表?

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2016-04-05 08:59:11

转到这个链接http://grouplens.org/datasets/movielens/并下载ml-最新的-Small.zip

它将给出33k电影的列表,并以int的形式链接到imdb id。(建议: imdb使用id,从两个tt和一个固定的数字开始,所以你必须完成电影镜头给出的id,但这没什么大不了的)

然后,您可以使用此id查询omdb,并从omdb获取所有可用的信息,或者在imdb网站上进行一些web抓取(omdb更快,但信息量更少)。

我可以把我用tmdb、imdb、omdb和ml创建的一些数据库转发给你--如果你愿意的话。

票数 2
EN

Stack Overflow用户

发布于 2016-04-05 07:28:22

如果您不依赖于此,那么似乎还不支持IMDbPY来获取所有列表。

这可能对你有帮助

使用

将所有数据请求发送到:

http://www.omdbapi.com/

海报API要求:

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

示例:

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

响应:

代码语言:javascript
复制
 {
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"
}
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/36418788

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档