Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #61508
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <drsalists@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'cpython': 0.05; 'encoding': 0.05; 'subject:Python': 0.06; 'mentioned,': 0.07; 'dan': 0.09; 'sure,': 0.09; 'cc:addr:python-list': 0.11; '2.7': 0.14; 'cc:name:python list': 0.16; 'encoding.': 0.16; 'imdb': 0.16; 'imdbpy': 0.16; 'quite.': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'pfxlen:0': 0.19; 'appears': 0.22; 'email addr:gmail.com>': 0.22; 'handles': 0.22; 'cc:addr:python.org': 0.22; 'question': 0.24; 'cc:2**0': 0.24; '>': 0.26; 'nearly': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'subject:) ': 0.29; 'dec': 0.30; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; 'lines': 0.31; 'apparently': 0.31; 'yourself.': 0.31; 'file': 0.32; 'probably': 0.32; 'text': 0.33; 'subject: (': 0.35; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'doing': 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'pm,': 0.38; 'rather': 0.38; 'flat': 0.60; 'tell': 0.60; 'to:addr:gmail.com': 0.65; 'charset:windows-1252': 0.65; 'believe': 0.68; 'reads': 0.68; 'us,': 0.73; 'issues;': 0.84; 'rated': 0.84; 'subject:Movie': 0.84; '2013,': 0.91; '2013': 0.98 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Pz8C2HL6Ldmx77FmL8ik6GOAuSTkiSROIQlmT6HytKU=; b=MmIl9yzm03KgEyeL9LfoIhiy/aZYVCuMFA0bNFlc2QrIDBzSGqlvGwPKgy8FxI1US9 1jkkbalkCIadyebV1kbG9QkolWgUH7FppRYQk0bi463RaRHNf6HS4zHZIcF0otzSIzYz efIVLW+XFB+1kaobilQnCIiaHAEjNmGpm1yEpUXWT06QB1pXA1kTCAl+bjjTE+WaQ0PM 5XsGxHyDrcSrtxB1RJgZLoAWIEowIs5tkSOU7jPB1G2nPXF5rzVefHV91c/I0zRgdyEu D2Yh5SVyQ0wsuCLUgZ9qOi+Z3vo4I0y0wb3ybEbnrAUkW23A75JzmX/GPP05RoBm3waY GBLg== |
| MIME-Version | 1.0 |
| X-Received | by 10.180.211.212 with SMTP id ne20mr21518229wic.31.1386719438858; Tue, 10 Dec 2013 15:50:38 -0800 (PST) |
| In-Reply-To | <2CDEC558-B896-402C-8F70-A3089A5EC93D@gmail.com> |
| References | <CAGGBd_pn4Mv8R0QuueG093YR82a3+EM2Sy+mF5d1aJ1D25yoeA@mail.gmail.com> <2CDEC558-B896-402C-8F70-A3089A5EC93D@gmail.com> |
| Date | Tue, 10 Dec 2013 15:50:38 -0800 |
| Subject | Re: Movie (MPAA) ratings and Python? |
| From | Dan Stromberg <drsalists@gmail.com> |
| To | Petite Abeille <petite.abeille@gmail.com> |
| Content-Type | multipart/alternative; boundary=001a11c38a888e6f9304ed36c720 |
| Cc | Python List <python-list@python.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3855.1386719445.18130.python-list@python.org> (permalink) |
| Lines | 129 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1386719445 news.xs4all.nl 2878 [2001:888:2000:d::a6]:46789 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:61508 |
Show key headers only | 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
Re: Movie (MPAA) ratings and Python? Dan Stromberg <drsalists@gmail.com> - 2013-12-10 15:50 -0800
csiph-web