Skip to main content

libert

CLI extremamente rápida e direta para download de livros do welib.

Instale via PyPI:

pip install libert

Uso rápido

libert <URL_DO_WELIB>
libert -f pdf <URL_DO_WELIB>
libert --format epub <URL_DO_WELIB>
libert -l links.txt
libert --list ./meus-links.txt
libert            # abre o menu interativo

Exemplo:

libert https://pt.welib.st/md5/55d053185d2b4871c7a0549b997135f9

Fluxo no terminal (1 livro):

[+] Conectando ao welib...
[+] Livro encontrado: "Nome do Livro"
[+] Formatos disponíveis:
  [1] PDF  (15.4 MB)
  [2] EPUB (2.1 MB)
Escolha o formato desejado (1-2):
  • Com apenas 1 formato disponível, o download começa automaticamente.
  • Com -f/--format, o modo é não-interativo.
  • O app resolve o link direto do arquivo a partir da página de download do welib (evita salvar HTML no lugar do PDF) e valida o conteúdo baixado — se o servidor devolver página em vez do livro, nada é salvo e o erro é mostrado.
  • URLs de download coladas direto (.../slow_download/<md5>/...) são convertidas para a página do livro automaticamente.
  • Em lote há uma pausa curta entre livros e retentativas em espelhos, pois o welib limita o ritmo de requisições.
  • Arquivos são salvos em ~/Downloads (Linux) ou ~/storage/downloads (Termux/Android).
  • Barra de progresso com tamanho total, porcentagem e velocidade.

Menu interativo (libert sem argumentos)

=== libert - Gerenciador de Downloads do welib ===

  [1] Baixar um único livro (inserir URL)
  [2] Baixar múltiplos livros (colar lista de URLs)
  [3] Baixar a partir de arquivo de texto (ex: links.txt)
  [0] Sair

Escolha uma opção (0-3):
  • Opção 1: pede a URL e segue o fluxo padrão (auto se 1 formato, pergunta se N).
  • Opção 2: cole um link por linha; uma linha em branco (Enter vazio) inicia o lote.
  • Opção 3: informa o .txt (Enter = links.txt do diretório atual, ou seja, da pasta onde o terminal está aberto). Linhas vazias e comentários # são ignorados.

Lote (batch)

[1/3] Processando: https://pt.welib.st/md5/aaa...
[+] Conectando ao welib...
...
[2/3] Processando: https://pt.welib.st/md5/bbb...
...
[+] Resumo: 2 baixado(s) com sucesso, 1 falha(s) de 3.
  • 1 formato → baixa sem pausar; N formatos → pergunta o formato daquele livro.
  • Falhas de um link (URL inválida, 404/403, rede) não abortam o lote.

Arquivo .txt de exemplo (links.txt):

# meus livros
https://pt.welib.st/md5/55d053185d2b4871c7a0549b997135f9
https://welib.st/md5/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

Opções

libert [-f FORMATO] [-o PASTA] [-l ARQUIVO.txt] [URL]
libert -V

Desenvolvimento

pip install -e .
python -m build

Licença

MIT

Metadata

Release files for libert 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for libert 0.2.2
File Size Uploaded
libert-0.2.2.tar.gz 17.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for libert 0.2.2
File Interpreter ABI Platform
libert-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 34.5 kB

Release files / libert-0.2.2.tar.gz

Download URL libert-0.2.2.tar.gz
Size 17.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5bed8db9e153162a19fcbd5a5a716bebdc5e1abb0bade2f2268cc9ba43181e8a
BLAKE2b-256 checksum
How to use checksums
dd49a3cea91b336977a8017fe51e48f15439f7552aeefbd202647a6a72bdc64c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / libert-0.2.2-py3-none-any.whl

Download URL libert-0.2.2-py3-none-any.whl
Size 17.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
66df4ebbaefaa5f8dab85eee05cf355bd7135ee4fb5b030b201eb3df58f66f07
BLAKE2b-256 checksum
How to use checksums
53e3e9b1dfe92edc600f5518f3b3e7933fe053cc4c89ccf1ce48f4a01e390227
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page