Ktuvit is a community based site for hebrew subtitles. It was previously known as Screwzira and was hosted under the same name. Ever since ktuvit moved to a new domain they decided to close their API and calls to bring it back were unanswered. Recently I built a project and needed a quick access to Ktuvit's database so I built this API.
Disclaimer: I called it an API but we don't really have direct access to the database. It works by making the same requests a user using the site would and extracting the results from the HTML at times.
Disclaimer: I'm by no means affiliated or am a part of Ktuvit. If this project breaks the site's TOS, reach out to me and I will terminate it.
Install the API using npm:
npm i ktuvit-api
This API let's you interact with Ktuvit.me subtitles database directly from node. With this module you can search, get a movie's Ktuvit Id, get a movie's subtitle list, download subtitles and more.
here we are downloading the first subtitle for "Pulp Fiction" and saving it locally:
const KtuvitManager = ;const fs = ;const manager = 'u=###&g=###';const pulpFictionKtuvitID = await manager;const firstSub = await manager0;manager;
Since I've built this API for my needs and in a rush it's probably lacking a lot of features so pull requests are very welcomed! If you found a bug please open an issue.
Feel free to help with these:
- Cache system
- Better error handling.
- Add documentation.
- Translate the readme.