This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Download, translate subtitles for NRK TV programs.

Dependencies

  • Python 3.4+
  • Beautiful Soup 4
  • Requests

Usage

To download subtitles for a programs, provide it’s URL as the first argument:

$ url='https://tv.nrk.no/serie/side-om-side/MUHH48000415/sesong-3/episode-4'
$ ./nrksub.py $url

Help

All command line options and arguments, and their purposes can be queried using the help switch:

$ ./nrksub.py --help

File

By default, nrksub will print the subtitles out to STDOUT. To write to a file, provide a file name as the second argument:

$ ./nrksub.py $url nytt-paa-nytt-26-12-2014.srt

Translate

nrksub can translate the Norwegian subtitles provided by NRK automatically using Google Translate. The translations are by no means perfect, but they are better than nothing. By default, the subtitles are translated to English, but you can use any language supported by Google Translate:

$ ./nrksub.py --lang es $url
Spanish output
$ ./nrksub.py --lang de $url
German output

If you want the original Norwegian subtitles, set the language to no (for Norwegian). This will skip the translation process:

$ ./nrksub.py --lang no $url

Format

By default, nrksub will output SRT format subtitles. nrksub can also output TTML format subtitles, but this is mostly for debugging purposes and of little use, as rarely any video player supports them:

$ ./nrksub.py --format ttml $url

More formats maybe added in the future, if I have the time.

Release History

Release History

0.4.0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.2.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
nrksub-0.4.0.tar.bz2 (14.6 kB) Copy SHA256 Checksum SHA256 Source Sep 30, 2015
nrksub-0.4.0.tar.gz (16.7 kB) Copy SHA256 Checksum SHA256 Source Sep 30, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting