Don’t know what to watch next? Download and watch top-ranked TED videos
Recently I found a great post where the author (using a script) ranked TED videos by the number of times they were mentioned in social services. And since TV series are getting more and more stupid I decided to start watching these videos. I’ve seen many great TED talks in the past and anyway videos people talk about the most shouldn’t be bad. So I decided to download all of them.
One would open that large XLS file from the site and start clicking links. It might seem easier to just watch one video from the list at a time than to write a script which visits URLs and downloads videos. But I wanted to upload all of them to my iPhone and watch/listen to them while on my way to work. So here’s the final script:
I uploaded the same script with data for TED videos (with rating >=5) and Gemfile to install required gems to GitHub. Some of the videos don’t have links to video files, so you have to watch them online.