ostd

Downloads subtitles from OpenSubtitles


Keywords
opensubtitles, python
License
MIT
Install
pip install ostd==1.0.1

Documentation

ostd

Simple OpenSubtitles.org download CLI-tool and API. You will have to acquire a user-agent as described here. The user-agent for test purposes is: TemporaryUserAgent (the API docs state this may change without notice, so keep that in mind).

Installation

pip install ostd

CLI

py -m ostd <USER-AGENT> <SUBTITLE-ID>

API

from ostd import Downloader

ids = (1234, 5678, 9012)

with Downloader('Your User-Agent') as downloader:
  for result in downloader.download(ids):
    print(result.content)  # Watch out for file and console encoding mismatches!

License

MIT.