Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I have a My Movies list on IMDb.com and I would like to see how much runtime all the movies and/or TV series in this list sum in total.

For example: Movie A has a 90 min runtime, Movie B has a 120 min runtime, Series C has 2 episodes of 30 min each. The sum would be 270 min or 4 h 30 min. This is what I am searching for—the total.

Is there a way to get this information from the website, that I am unaware off?

share|improve this question
add comment

1 Answer

up vote -1 down vote accepted
+50

No, you would have hacked their site and put there such script ;). But, what you can do... is to write some program/addon for your browser. I think maybe GreaseMonkey could do something like that. Try to search greasemonkey firefox and go this way. Or hire some programmer who can write asuch monitoring script for Chrome or Firefox. basically the addon should save the entering time and leavving time for your list URL and save it. HTen you can do everything what you want with these results. So, finding a pregrammer who can write this addon is the best thing you can do in my opinion. That's my advice for you ;)

share|improve this answer
    
im not sure if you understood my question correctly. i dont want to see how long i have been surfing on that site. i want to sum the duration of each movie/series together to get the complete time. for example: movie 1 has a duration of 90min and movie 2 a duration of 120 -> 210min would be the number i wanted to search for. but thank you for your effort. –  Wandang Jun 30 '12 at 12:57
    
OK, so you need to scrape the site (with a custom made script that could be written in every language e.g. PHP, Python etc.) and find the divs or other elements you are interested in e.g. the name of the movie and the duration. E.g. if you look at imdb.com/list/-7fJjrdRgpA and view the source code, you will see that there is a div with a class "list_item" so you need to get all these divs. Then, inside this list_item div, you are looking for the div called "b" which contain an a href tag with the name. So you need to grab the text within this tag. –  Derfder Jun 30 '12 at 14:01
    
The second thing you need is the duration of this movie and this info is a little tricky. You have to get the item_description div and grab the content inside this div and use some regex to find and grab the integer value before the "mins.)" string. –  Derfder Jun 30 '12 at 14:03
    
These information you can store in a database and process however you like. But writing actual script is a little complicated for a beginner. Try to find someone, who can write it for you. It will cost from 50 to 100 bucks if you find someone who is good in building sitescrappers and is able to write it in 1-2 hours. –  Derfder Jun 30 '12 at 14:04
1  
Check this link for an example: sunilb.com/php/writing-website-scrapers-in-php . Hope my comments help ;) –  Derfder Jun 30 '12 at 14:10
show 1 more comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.