Jump to content

Descobrir link do imdb


carvalho2707
 Share

Recommended Posts

esqueci me de dizer que tinha mandado vir em json ..

nao consegui resolver o problema, mas encontrei outro site que faz o mesmo e que retorna sem ser array de objectos..

mas gostava de saber a' mesma:

{"Title":"Federal Bank Heist","Year":"2011","Rated":"N/A","Released":"22 Jul 2011","Runtime":"1 h 41 min","Genre":"Crime, Drama, Thriller","Director":"Marcos Paulo","Writer":"Lucio Manfredi, Rene Belmonte","Actors":"Milhem Cortaz, Eriberto Leão, Hermila Guedes, Lima Duarte","Plot":"'The Baron' wanted to commit the perfect heist involving 3 tons of money and no violence. For this he...","Poster":"N/A","imdbRating":"5.7","imdbVotes":"1,115","imdbID":"tt1579223","Type":"movie","Response":"True"}

sao objectos e para aceder e' so fazer get

mas o site que sugeriste retornava:

["Title":"Federal Bank Heist","Year":"2011","Rated":"N/A","Released":"22 Jul 2011","Runtime":"1 h 41 min","Genre":"Crime, Drama, Thriller","Director":"Marcos Paulo","Writer":"Lucio Manfredi, Rene Belmonte","Actors":"Milhem Cortaz, Eriberto Leão, Hermila Guedes, Lima Duarte","Plot":"'The Baron' wanted to commit the perfect heist involving 3 tons of money and no violence. For this he...","Poster":"N/A","imdbRating":"5.7","imdbVotes":"1,115","imdbID":"tt1579223","Type":"movie","Response":"True"]

EDIT: nao consigo descrever ao certo pq o site esta down

Link to comment
Share on other sites

O link que eu sugeri vem em formato XML que deve ser mais fácil para ti fazer parse da informação.

http://www.java-samples.com/showtutorial.php?tutorialid=152

http://www.javacodegeeks.com/2013/05/parsing-xml-using-dom-sax-and-stax-parser-in-java.html

http://viralpatel.net/blogs/java-xml-xpath-tutorial-parse-xml/

Edited by bioshock
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.