IMDb 是否提供 api 或数据转储来获取所有标题 ID? [英] Does IMDb provide an api or a data dump to get all title IDs?

查看:24
本文介绍了IMDb 是否提供 api 或数据转储来获取所有标题 ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IMDB 提供用户可以下载和使用的纯文本文件,可以在这里找到:IMDB 纯文本文件,这很棒,但我在任何文件中都看不到每部电影使用的 ID.

IMDB provides plain text files user's can download and use which can be found here: IMDB Plain Text Files which is great but I don't see the ID used for each movie in any of the files.

鉴于 IMDB 在其使用条件中明确表示不要使用刮刀、数据收集器等,如何获得标题 ID http://www.imdb.com/title/tt1133985/ 对于每部电影,如果它们不包含在任何纯文本文件中.

Given IMDB specifically says not to use scrapers, data gatherers etc in their Conditions of Use how would one obtain the title ID http://www.imdb.com/title/tt1133985/ for each movie if they aren't included in any of the plain text files.

我注意到有一些其他人构建的 API 确实包含此 ID,所以我想知道他们是如何做到这一点的.

I've noticed there are some API's others have built that do include this ID so I'm wondering how did they manage to do that.

推荐答案

您可以使用位于

www.omdbapi.com

你可以像这样搜索电影名称 -

You can search for movie names like this -

http://www.omdbapi.com/?t=hangover%202

{
"Title":"The Hangover Part II",
"Year":"2011",
"Rated":"R",
"Released":"26 May 2011",
"Genre":"Comedy",
"Director":"Todd Phillips",
"Writer":"Craig Mazin, Scot Armstrong",
"Actors":"Bradley Cooper, Zach Galifianakis, Ed Helms, Justin Bartha",
"Plot":"Right after the bachelor party in Las Vegas, Phil, Stu, Alan, and Doug jet to Thailand for Stu's wedding. Stu's plan for a subdued pre-wedding brunch, however, goes seriously awry.",
"Poster":"http://ia.media-imdb.com/images/M/MV5BMTM2MTM4MzY2OV5BMl5BanBnXkFtZTcwNjQ3NzI4NA@@._V1_SX320.jpg","
Runtime":"1 hr 42 mins",
"Rating":"7.1",
"Votes":"13547",
"ID":"tt1411697",
"Response":"True"
} 

您可以从此 JSON 响应中获取ID"(tt1411697).

You can get the "ID" (tt1411697) from this JSON response.

这篇关于IMDb 是否提供 api 或数据转储来获取所有标题 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆