我正在尝试创建一个需要从 imdb 提取数据的项目。我见过一些 php 提取器,但我需要一个 java 程序。我需要提取如下信息:
- 电影名称和年份
- 小地块
- 评分
- 类型
- 演员
数据如下,我需要从中提取数据:
{
"Title": "Brave",
"Year": "2012",
"Rated": "PG",
"Released": "22 Jun 2012",
"Runtime": "1 h 40 min",
"Genre": "Animation, Action, Adventure, Comedy, Family, Fantasy",
"Director": "Mark Andrews, Brenda Chapman",
"Writer": "Mark Andrews, Steve Purcell",
"Actors": "Kelly Macdonald, Billy Connolly, Emma Thompson, Julie Walters",
"Plot": "Determined to make her own path in life, Princess Merida defies a custom that brings chaos to her kingdom. Granted one wish, Merida must rely on her bravery and her archery skills to undo a beastly curse.",
"Poster": "http://ia.media-imdb.com/images/M/MV5BMzgwODk3ODA1NF5BMl5BanBnXkFtZTcwNjU3NjQ0Nw@@._V1_SX640.jpg",
"imdbRating": "7.5",
"imdbVotes": "1,002",
"imdbID": "tt1217209",
"Response": "True"
}
如果有帮助,此数据来自 imdbapi.com。让我知道是否有任何其他方法可以以任何其他方式提取这些数据,我的意思是这些数据将以更结构化的形式显示的其他方式。喜欢卓越。