Has any one done this before? It would seem to me that there should be a webservice but i can't find one. I am writing an application for personal use that would just show basic info from IMDB.
相关问题
- Is the Namespace for a SOAP Web Service case sensi
- How can I send parameters for ASP.NET webservice
- Http post request to a Django webservice (need log
- Sending Data to server using Jsoup Android
- WCF MessageContract wrapping and lists
相关文章
- Using JAX-WS 2.2.5 client with JDK/JRE 1.5
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- How to create base64Binary data?
- Are there any public UDDI registries available?
- REST search interface and the idempotency of GET
- Add Service Reference and Add Web Reference?
- Rest Web services returning a 404
- Protect Web API from unauthorized applications
The libraries for IMDb seem quite unreliable at present and highly inefficient. I really wish IMDb would just create a webservice.
After a bit of searching I found a reasonable alternative to IMDb. It provides all the basic information such as overview, year, ratings, posters, trailers etc.:
The Movie Database (TMDb).
It provides a webservice with wrappers for several languages and seems reliable so far. The search results have been, for myself, more accurate as well.
IMDB prohibits scrapers, and change the page layout every once in a while, so parsing HTML is an option, but be prepared to adjust your code 2-3 times a year (been there, done that, given up). They do have a fee-based service giving the full access to the data, but you'll also need to explain what is it for, and convince them you are not building a competitive website (I had a link to that, but it seems to have changed and can't find it now).
Now there's is an (undocumented) API like
http://www.imdb.com/xml/find?json=1&q=Harry+Potter
. See Does IMDB provide an API?Here is my own solution using RegEx:
Another alternative is to run the IMDB database on your local machine. Java Movie Database imports the IMDB database files, converts them and provides a locally-accessible copy of IMDB. IMDB has some functionality which Java Movie Database does not have and visa-versa but if what you're looking for is quick access to all the data it might be worth giving this a try.
Though this was posted over two years ago, here is a simple python code
save as imdb.py and then run as in shell or terminal or whatever
if you want xml data just replace json with xml
please note that this is using the imdbapi.com website to return a json result visit that website to view more options.