gpt4 book ai didi

api - OMDb API 烂番茄

转载 作者:行者123 更新时间:2023-12-01 16:55:34 24 4
gpt4 key购买 nike

我相信这可能只是 OMDb API 中的一个错误。但我希望有人能指出我方法中的错误。

我正在尝试在输出中包含烂番茄评级。但无论我尝试什么选择,我都什么也得不到。

curl http://www.omdbapi.com/?t=Iron+Man&y=&plot=short&tomatoes=true&r=json

输出:

   {
:Title => "Iron Man",
:Year => "2008",
:Rated => "PG-13",
:Released => "02 May 2008",
:Runtime => "126 min",
:Genre => "Action, Adventure, Sci-Fi",
:Director => "Jon Favreau",
:Writer => "Mark Fergus (screenplay), Hawk Ostby (screenplay), Art Marcum (screenplay), Matt Holloway (screenplay), Stan Lee (characters), Don Heck (characters), Larry Lieber (characters), Jack Kirby (characters)",
:Actors => "Robert Downey Jr., Terrence Howard, Jeff Bridges, Gwyneth Paltrow",
:Plot => "After being held captive in an Afghan cave, an industrialist creates a unique weaponized suit of armor to fight evil.",
:Language => "English, Persian, Urdu, Arabic, Hungarian",
:Country => "USA",
:Awards => "Nominated for 2 Oscars. Another 17 wins & 52 nominations.",
:Poster => "http://ia.media-imdb.com/images/M/MV5BMTczNTI2ODUwOF5BMl5BanBnXkFtZTcwMTU0NTIzMw@@._V1_SX300.jpg",
:Metascore => "79",
:imdbRating => "7.9",
:imdbVotes => "629,489",
:imdbID => "tt0371746",
:Type => "movie",
:Response => "True"
}

引用: http://www.omdbapi.com/

更新

万一有人再遇到这个(我)。这是西红柿的预期输出:

{
:Title => "Iron Man",
:Year => "2008",
:Rated => "PG-13",
:Released => "02 May 2008",
:Runtime => "126 min",
:Genre => "Action, Adventure, Sci-Fi",
:Director => "Jon Favreau",
:Writer => "Mark Fergus (screenplay), Hawk Ostby (screenplay), Art Marcum (screenplay), Matt Holloway (screenplay), Stan Lee (characters), Don Heck (characters), Larry Lieber (characters), Jack Kirby (characters)",
:Actors => "Robert Downey Jr., Terrence Howard, Jeff Bridges, Gwyneth Paltrow",
:Plot => "After being held captive in an Afghan cave, an industrialist creates a unique weaponized suit of armor to fight evil.",
:Language => "English, Persian, Urdu, Arabic, Hungarian",
:Country => "USA",
:Awards => "Nominated for 2 Oscars. Another 19 wins & 58 nominations.",
:Poster => "http://ia.media-imdb.com/images/M/MV5BMTczNTI2ODUwOF5BMl5BanBnXkFtZTcwMTU0NTIzMw@@._V1_SX300.jpg",
:Metascore => "79",
:imdbRating => "7.9",
:imdbVotes => "635,229",
:imdbID => "tt0371746",
:Type => "movie",
:tomatoMeter => "94",
:tomatoImage => "certified",
:tomatoRating => "7.7",
:tomatoReviews => "266",
:tomatoFresh => "249",
:tomatoRotten => "17",
:tomatoConsensus => "Director Jon Favreau and star Robert Downey Jr. make this smart, high impact superhero movie one that even non-comics fans can enjoy.",
:tomatoUserMeter => "91",
:tomatoUserRating => "4.2",
:tomatoUserReviews => "1072111",
:DVD => "30 Sep 2008",
:BoxOffice => "$318.3M",
:Production => "Paramount Pictures",
:Website => "http://www.ironmanmovie.com/",
:Response => "True"
}

最佳答案

嗯,您必须将您的网址包含在引号内。否则 & 会通过破坏该位置的命令来导致问题。

curl "http://www.omdbapi.com/?t=Iron+Man&y=&plot=short&tomatoes=true&r=json"

关于api - OMDb API 烂番茄,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33885560/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com