Created
November 18, 2011 04:57
-
-
Save supr/1375643 to your computer and use it in GitHub Desktop.
Gist to download movie Info.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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