CLI tool for downloading subtitles from napiprojekt.pl
Project description
napi-py

CLI tool for downloading subtitles from napiprojekt.pl, fork of gabrys/napi.py
prerequisites
- Python 3.7 or newer
installation
pip install napi-pyfor user-wide installation
usage as CLI tool
napi-py ~/Downloads/MyMovie.mp4will download and save subtitles under~/Downloads/MyMovie.srt
usage as lib
from napi import NapiPy
movie_path = "~/Downloads/MyMovie.mp4"
napi = NapiPy()
movie_hash = napi.calc_hash(movie_path)
source_encoding, target_encoding, tmp_file = napi.download_subs(movie_hash)
subs_path = napi.move_subs_to_movie(tmp_file, movie_path)
print(subs_path)
in case of issues
- if there are no subs for your movie, there's still hope:
- open the movie web page on
napiprojekt.plin your browser, as in example:https://www.napiprojekt.pl/napisy1,1,1-dla-55534-Z%C5%82odziejaszki-(2018) - choose subtitles that might match your movie, right-click them and select "Copy link" on link containing hash, which looks like this
napiprojekt:96edd6537d9852a51cbdd5b64fee9194 - use flag
--hash YOURHASHin this tool, i.e.--hash 96edd6537d9852a51cbdd5b64fee9194or--hash napiprojekt:96edd6537d9852a51cbdd5b64fee9194
- open the movie web page on
development
make installinstalls poetry virtualenvmake testruns testsmake buildcreates installable package
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
napi_py-1.2.4.tar.gz
(17.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
napi_py-1.2.4-py3-none-any.whl
(18.9 kB
view details)
File details
Details for the file napi_py-1.2.4.tar.gz.
File metadata
- Download URL: napi_py-1.2.4.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d278cd4a716f00ce1719d1963a6c53224e7ab87f4c5d43eee8e348f65c6f9c2a
|
|
| MD5 |
a0cb917821d75ff111a0f1c18cf5ad4f
|
|
| BLAKE2b-256 |
16c8da6cdc6afdcdfcdb78626972a3ee6e099587505ca309dbb56255fbd561b3
|
File details
Details for the file napi_py-1.2.4-py3-none-any.whl.
File metadata
- Download URL: napi_py-1.2.4-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.14 Linux/6.5.0-1025-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24fa54bb2617b5c6cccaf7b0870795ac9be79c6072fe5f51fe096a0a22b6aa9f
|
|
| MD5 |
1b77135516ab46dfa0327eb9ef1635b3
|
|
| BLAKE2b-256 |
840c5b34434a6ce2b80ee98b4e38cef9147405acbd5a128017c9d13e2b63fcb6
|