|
|
|
|
|
by psychometry
4391 days ago
|
|
Netflix was my first introduction to webscraping back around 2004 (with Perl and WWW::Mechanize) because they didn't see the need for an API. They've never done anything more than pay lip service to it since they finally caved in and made one. Guess it's back to doing that, or using an alternative like TheMovieDB [1], which has a nice API. [1] http://www.themoviedb.org/ |
|
Of course, the database has more than Simpsons episodes in it (and renaming works with movies too), but it's my go-to example. :-)
Want to try it out? It's easy. Make sure you have Go installed, then install and load and search:
Loading/searching is a bit slower with SQLite than with PostgreSQL, but it's more convenient. (e.g., The search command above is over 12x faster with PostgreSQL on my system.)[1] - https://github.com/BurntSushi/goim