xml - IMDB API - 获取有关多部电影的数据

标签 xml imdb

您知道是否可以使用 IMDB API ( http://www.omdbapi.com/ ) 获取多部电影(而不仅仅是一部)的数据?仅一部电影的示例:

请求:

http://www.omdbapi.com/?t=requiem+for+a+dream&y=&plot=short&r=xml

回应:

<?xml version="1.0" encoding="UTF-8"?><root response="True"><movie title="Requiem for a Dream" year="2000" rated="R" released="27 Oct 2000" runtime="102 min" genre="Drama" director="Darren Aronofsky" writer="Hubert Selby Jr. (based on the book by), Hubert Selby Jr. (screenplay), Darren Aronofsky (screenplay)" actors="Ellen Burstyn, Jared Leto, Jennifer Connelly, Marlon Wayans" plot="The drug-induced utopias of four Coney Island people are shattered when their addictions become stronger." language="English" country="USA" awards="Nominated for 1 Oscar. Another 32 wins & 47 nominations." poster="http://ia.media-imdb.com/images/M/MV5BMzM2OTYwMTY4Nl5BMl5BanBnXkFtZTcwMjU1Njg3OA@@._V1_SX300.jpg" metascore="68" imdbRating="8.4" imdbVotes="456,416" imdbID="tt0180093" type="movie"/></root>

最佳答案

omdb 提供了一个搜索参数,因此您最多可以获得 9 部类似的电影

www.omdbapi.com/?s=requiem

如果你对这个不满意,你也可以尝试一下imdb自己的无文档搜索功能,看起来更快一点。

http://www.imdb.com/xml/find?q=requim

从搜索中获得标题/imdbid 后,您可以从问题中提到的基于 omdb 标题的查询中获取更多详细信息。

`

关于xml - IMDB API - 获取有关多部电影的数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27424603/

相关文章:

Javascript打印一个包含xml内容的字符串

javascript - HTML/PHP 表单到 XML

html - 如何使用 XSLT 将 HTML 百分比编码转换为 Unicode?

java - 在java中将IMDB数据获取到JSON数组

用于更改 .tcx 文件 (XML) 中的属性值的 Python 脚本

python - 使用 etree Python 解析 xml

search - IMDB 搜索为何如此快速?

javascript - 如何在 PHP 中使用 Ajax 从网站(例如 IMDB )获取数据

asp.net-web-api - IMDB 是否提供 API?

http - Python 3,http.client HTTP 错误 400