Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61501 > unrolled thread

Re: Movie (MPAA) ratings and Python?

Started byPetite Abeille <petite.abeille@gmail.com>
First post2013-12-10 22:07 +0100
Last post2013-12-10 22:07 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Movie (MPAA) ratings and Python? Petite Abeille <petite.abeille@gmail.com> - 2013-12-10 22:07 +0100

#61501 — Re: Movie (MPAA) ratings and Python?

FromPetite Abeille <petite.abeille@gmail.com>
Date2013-12-10 22:07 +0100
SubjectRe: Movie (MPAA) ratings and Python?
Message-ID<mailman.3849.1386710066.18130.python-list@python.org>
On Dec 10, 2013, at 6:25 AM, Dan Stromberg <drsalists@gmail.com> wrote:

> The IMDB flat text file probably came the closest, but it appears to have encoding issues; it's apparently nearly windows-1255, but not quite.

It's ISO-8859-1.

Both certificates.list.gz and mpaa-ratings-reasons.list.gz are rather straightforward to parse.

For the US, you will get something along these lines out of certificates.list.gz:

USA:(Banned)
USA:12
USA:AO
USA:Approved
USA:C
USA:E
USA:E10+
USA:G
USA:GP
USA:K-A
USA:M
USA:M/PG
USA:NC-17
USA:Not Rated
USA:Open
USA:PG
USA:PG-13
USA:Passed
USA:R
USA:T
USA:TV-14
USA:TV-G
USA:TV-MA
USA:TV-PG
USA:TV-Y
USA:TV-Y7
USA:Unrated
USA:X

And as mentioned, imdbpy handles all this out-of-the-box if you don’t feel like doing it yourself.



[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web