This site exists on your donations. Donate here
Switch theme
About Contact Log in Register!

354,905 users • 210,295 reviews
127,306 films • 19,309 TV series

Auto-fetching IMDB Rating (1513 views, 11 replies)

This topic has been closed.

newbie
Report comment
(8y)

I've noticed that more often than not it seems that the IMDB-ratings set on the site are not the same as the actual ones on IMDB, obivously the reason for this is most likely that they've changed since the movie/series was added, so my suggestion is fetching that information automatically from OMDB's API (which is an unofficial IMDB API), it's easily used and fetches information in json or xml format so it's easily parsed. <br> <br> For example, If a user input www.imdb.com/title/tt1124037/ as the IMDB URL, it could fetch the ID (tt1124037), and add it to the OMDB api becomming www.omdbapi.com/?i=tt1124037&... (easily placed since exact same ID), the output (in json) would be: <br> <br> {"Title":"Free State of Jones","Year":"2016","Rated":"R","Releas ed":"24 Jun 2016","Runtime":"139 min","Genre":"Action, Biography, Drama","Director":"Gary Ross","Writer":"Gary Ross (screenplay), Leonard Hartman (story), Gary Ross (story)","Actors":"Matthew McConaughey, Gugu Mbatha-Raw, Mahershala Ali, Keri Russell","Plot":"A disillusioned Confederate army deserter returns to Mississippi and leads a militia of fellow deserters, runaway slaves, and women in an uprising against the corrupt local Confederate government.","Language":"English","Count ry":"USA","Awards":"1 win & 3 nominations.","Poster":"*poster*","Metas core":"53","imdbRating":"6.9","imdbVotes ":"24,307","imdbID":"tt1124037","Type":" movie","Response":"True"} <br> <br> (Removed the poster-URL to try shorten it a little bit) <br> <br> Which would easily be parsed by finding the value of "imdbRating" and outputting it to the site. ...
Read more

0
 

admin
Report comment
(8y)

We're already doing what you said. And we don't need this API.

0
 
Hide 5 replies...
Report comment
(8y)

@Dr.Evil Fair enough, how frequently is the IMDB rating updated then?, Or is it just fetched once when addint?, Because the vast majority of times I've checked it hasn't been the same as the actual rating on the site, sometimes it's even said 6.something here when the actual rating on the site was 4.something.

0
 
Report comment
(8y)

@zgdthree 50,000 movies. This is the reason. We don't want to DDOS IMDB lol. Anyways thanks, yes I know that actual IMDB rating on NEW movies changing every day, that's why we included imdb links on every page. So you can just go to IMDB website and do what you want.

0
 
Report comment
(8y)

@Dr.Evil That would assume all movies were updated at the same time though, which it wouldn't have to be, not to mention that it wasn't what I originally was referring to. Technically speaking, it could be fetched upon opeing a movie page, save that number, and set to not repeat the action until a certain amount of time have passed (lets say every 3 days). That way it would only update for movies that are actually being watched, and it wouldn't overload any servers since it would only request the info 3 days after the last time it fetched it.

0
 
Report comment
(8y)

@zgdthree A very bad idea. I mean "upon opening a movie page". <br> <br> We will speed up imdb parsing in the next update.

0
 
Report comment
(8y)

@Dr.Evil The original idea of upon entering the movie page was probably a bad idea on my part, I can't deny that, seeing how big the userbase is, but with limitations to when it would be fetching, it could probably work atleast fairly decently. But I'm guessing you've got it under control, and I hope we'll see more frequent updates of the IMDB rating in the near future. :)

0
 
Log in or register to post your comment.
This topic has been closed.

Similar forum topics




FEEDBACK

Join 354,905 users who love movies and TV shows!

210,295 reviews • 127,306 films • 19,309 TV series

Log in   Sign up free!