Umm... well, there is this site http://imdbapi.com; which does the scraping (or maybe they have the offline datasets!), and then you can get json replies from them.
I suspect they may have trademark issues with their site name, but their data looks free and clear.
EDIT: Nirvana has a good point about the imdb ratings. That may not be legally obtained.
Source: Freebase, licensed under CC-BY
Other content from Wikipedia, licensed under CC BY-SA