Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 1.12 KB

README.md

File metadata and controls

24 lines (18 loc) · 1.12 KB

iCheckMovies get total runtime

Takes a csv file (e.g. exported from iCheckMovies) as input and calculates the total runtime in days, hours and minutes. It mainly uses OMDb API as opposed to IMDb because:

  • It has a clean API
  • It is faster to handle a small json file than downloading and parse an entire IMDb page

According to my small test of 1176 titles OMDb has information on more than 99 % of the titles. For the few cases where OMDb does not have the runtime information a lookup on IMDb is performed.

The unscientific test of 1176 entries, containing plenty of rare and old titles. The table shows how many hits there were on OMDb, IMDb if OMDb failed, or neither of them.

OMDb Imdb Neither
1165 1 10

The hit on IMDb was a newer movie, of the 10 titles neither had 9 were danish movies and the last a tv-episode.

Requirements

python3 libraries: beautifulsoup4 and requests. On linux install with pip3 install requests beautifulsoup4 or sudo pip3 install requests beautifulsoup4 to make them available for all users.

How to use

./icm_get_total_time path-to-csv-file