[REQ] Rotten tomatoes import script
Posted: 2015-09-21 21:01:45
Could any experienced scripters tell me if it's possible to import rotten tomatoes movie data into AMC?
Long ago, I created a greasemonkey script to convert any imdb links to to rotten tomatoes links by modifying the URL. This ability is now broke on the site, but I have recently changed it to interact with rotten tomatoe's new API:
for (var i = document.links.length - 1; i>=0; --i) {
var link = document.links, href = link.getAttribute("href");
if (href.indexOf("http://www.imdb")==0)
link.href = "http://api.rottentomatoes.com/api/publi ... e=imdb&id=" + href.match(/\d+/)[0];
e.g Robocop IMDB link:
http://www.imdb.com/title/tt0093870
becomes:
http://api.rottentomatoes.com/api/publi ... id=0093870
This new API produces a plain text page with lots of useful info. In particular I would like to add movie score and fresh certifications to my movie database. Using the pre-existing IMDB urls in an ant movie catalog and a regular expression type conversion (as above) to point to the rotten tomatoes API page, would it be possible to pull down this data?
Any suggestions or help would be much appreciated.
Thanks!
Long ago, I created a greasemonkey script to convert any imdb links to to rotten tomatoes links by modifying the URL. This ability is now broke on the site, but I have recently changed it to interact with rotten tomatoe's new API:
for (var i = document.links.length - 1; i>=0; --i) {
var link = document.links, href = link.getAttribute("href");
if (href.indexOf("http://www.imdb")==0)
link.href = "http://api.rottentomatoes.com/api/publi ... e=imdb&id=" + href.match(/\d+/)[0];
e.g Robocop IMDB link:
http://www.imdb.com/title/tt0093870
becomes:
http://api.rottentomatoes.com/api/publi ... id=0093870
This new API produces a plain text page with lots of useful info. In particular I would like to add movie score and fresh certifications to my movie database. Using the pre-existing IMDB urls in an ant movie catalog and a regular expression type conversion (as above) to point to the rotten tomatoes API page, would it be possible to pull down this data?
Any suggestions or help would be much appreciated.
Thanks!