Skip to main content

A CLI tool to download subtitles

Project description

SubCLI – Subtitle Downloader from SubtitleCat

SubCLI é uma ferramenta de linha de comando (CLI) em Python que permite pesquisar e baixar legendas de filmes a partir do site subtitlecat.com, diretamente pelo terminal.


Features

  • Pesquisa de legendas por nome do filme
  • Escolha entre opções de idioma disponíveis
  • Download da legenda selecionada como arquivo .zip
  • Interface CLI interativa com navegação por setas
  • Baseado nas bibliotecas Click e InquirerPy

Installation

Requer Python 3.6+

Opção 1 – Instalação via PyPI (recomendado)

pip install subcli

Opção 2 – Instalação via Código-fonte

  1. Clone o projeto:
git clone https://github.com/yourusername/subcli.git
cd subcli
  1. Crie um ambiente virtual (opcional, mas recomendado):
python -m venv .venv
source .venv/bin/activate  # No Windows use `.venv\Scripts\activate`
  1. Instale as dependências:
pip install -r requirements.txt
  1. Instale o CLI localmente:
pip install .

Usage

Depois da instalação, você pode rodar:

subcli "John Wick 4"

O que acontece:

  1. O programa busca resultados no SubtitleCat
  2. Exibe uma lista de versões de legendas
  3. Permite selecionar o idioma desejado
  4. Faz o download da legenda .zip no diretório atual

Example

$ subcli "The Matrix"

Found 12 subtitles for 'The Matrix':
? Select a subtitle result: (Use arrow keys)
=> The Matrix 1999 BluRay x264 YIFY
   The Matrix 1999 DVDRip
   The Matrix Reloaded 2003

? Select a subtitle language: (Use arrow keys)
=> English
   Portuguese
   Spanish

You selected: English
File downloaded as: The.Matrix.1999.YIFY.English.zip

Project Structure

subcli/
├── subcli/
│   ├── __init__.py
│   ├── cli.py               # Ponto de entrada da CLI
│   └── get_subtitle.py      # Lógica de scraping e download
├── setup.py
├── README.md
└── requirements.txt

Disclaimer

Este projeto realiza scraping de conteúdo do site subtitlecat.com. Use-o de forma responsável e respeite as licenças associadas às legendas.


Author

Desenvolvido por yannickRafael – contribuições e forks são bem-vindos.


License

MIT License


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

subcli-0.1.2.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

subcli-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file subcli-0.1.2.tar.gz.

File metadata

  • Download URL: subcli-0.1.2.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for subcli-0.1.2.tar.gz
Algorithm Hash digest
SHA256 0a774d45662334f3c11ba3e50c5ab1efa678f797139311283eae892f628a7532
MD5 c9086645de60382d0209ada63c2ca29c
BLAKE2b-256 d3a855b89e46b99e701cf273efb52fe23067bec03405a83673bd3ae26b280b57

See more details on using hashes here.

File details

Details for the file subcli-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: subcli-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for subcli-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0075843d3df0817b61b9a6e959d413a9955f8e8db0908d0287808b4e3bbfd6bf
MD5 9d0872815dc511fe73301e62cc169724
BLAKE2b-256 b8e5cdf4a2692baf206736c7a7203ec97b8e3a0ebe6b03c2e1af7beb7742fb02

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page