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.
- 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.txtdo 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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| libert-0.2.1.tar.gz | 15.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| libert-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.8 kB
Release files / libert-0.2.1.tar.gz
| Download URL | libert-0.2.1.tar.gz |
|---|---|
| Size | 15.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
643852c26edef6b109ee5dd81febe3ae9ceccbc6745bc2cb3ee09087f3d7774c
|
|
BLAKE2b-256 checksum How to use checksums |
53fb4eee1b633d0f15af5d30239922eecc972a2e6ca91705db50ecca3a692991
|
| 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.1-py3-none-any.whl
| Download URL | libert-0.2.1-py3-none-any.whl |
|---|---|
| Size | 16.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1268089ce8076acbe2d941198b4491d91c53be35d951a2430904f849f85d4d09
|
|
BLAKE2b-256 checksum How to use checksums |
69474650aae2513658b3b42cb15515804c0f17b5e3f63e84a221b8e8f6081294
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|