Skip to content

Instantly share code, notes, and snippets.

@supr
Created November 18, 2011 04:57
Show Gist options
  • Save supr/1375643 to your computer and use it in GitHub Desktop.
Save supr/1375643 to your computer and use it in GitHub Desktop.
Gist to download movie Info.
import simplejson as json
from encoder.MetadataEncoder import MetadataJSONEncoder
def main():
r = Raaga()
ids = r.get_movie_ids()
m = []
for i in xrange(0, len(ids)):
try:
m.append(r.get_movie_info(ids[i]))
except:
pass
print json.dumps(m, cls = MetadataJSONEncoder)
if __name__ == "__main__":
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment