Jump to content
carvalho2707

Descobrir link do imdb

Recommended Posts

carvalho2707

Boas,

Estou a tentar fazer um programa que lê as pastas que tenho em disco(so filmes claro) e que me descobre o link do imdb e/ou informações sobre o filme..

alguem sabe como posso fazer isto?

Share this post


Link to post
Share on other sites
carvalho2707

obrigado ;) mas tenho um problema, como obtenho as informacoes se o resultado obtido pelos request vem num array sem descritor?

Share this post


Link to post
Share on other sites
carvalho2707

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

Share this post


Link to post
Share on other sites
saca-rolhas

Numa maneira mais hardcore é programares um BOT para te ler o IMBD, recorrendo aos métodos do java.net.


The worst part of censorship is ****

Share this post


Link to post
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

×
×
  • 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.