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


Groups > comp.lang.python > #61508

Re: Movie (MPAA) ratings and Python?

References <CAGGBd_pn4Mv8R0QuueG093YR82a3+EM2Sy+mF5d1aJ1D25yoeA@mail.gmail.com> <2CDEC558-B896-402C-8F70-A3089A5EC93D@gmail.com>
Date 2013-12-10 15:50 -0800
Subject Re: Movie (MPAA) ratings and Python?
From Dan Stromberg <drsalists@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.3855.1386719445.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Dec 10, 2013 at 1:07 PM, Petite Abeille <petite.abeille@gmail.com>wrote:

>
> 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.
>
Thanks - that reads well from CPython 3.3.

Now the question becomes: Why did chardet tell me it was windows-1255?  :)


> Both certificates.list.gz and mpaa-ratings-reasons.list.gz are rather
> straightforward to parse.
>
Sure, with an appropriate encoding.


> 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.

But I believe imdbpy is 2.7 only.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Movie (MPAA) ratings and Python? Dan Stromberg <drsalists@gmail.com> - 2013-12-10 15:50 -0800

csiph-web