Repository navigation
Releases
WattPDL v2.0.1
English
Audit and smoothness pass over existing features. No new commands.
Improvements
- Faster library checks.
--check-updatesand--update-libraryprobe up to four stories concurrently, preserving order. - Fewer config writes. Batch flows write preferences once per run instead of once per story.
- No network call before argument validation. Invalid commands fail immediately.
- Honest dry-run summary. Batch dry runs say "Simulation: N stories ready to download".
- Test hygiene. Direct-download tests isolate
config.json, so the owner's real preferences are untouched.
Usage
pip install --upgrade wattpdlBahasa Indonesia
Audit dan penyempurnaan atas fitur yang ada. Tidak ada perintah baru.
Peningkatan
- Cek library lebih cepat.
--check-updatesdan--update-librarymengecek hingga empat cerita secara bersamaan dengan urutan tetap terjaga. - Lebih sedikit penulisan config. Alur batch menulis preferensi sekali per sesi, bukan sekali per cerita.
- Tidak ada request jaringan sebelum validasi argumen. Perintah yang salah gagal langsung.
- Ringkasan dry-run yang jujur. Batch dry-run menampilkan "Simulation: N stories ready to download".
- Kebersihan test. Test yang memanggil
run_downloadlangsung mengisolasiconfig.json, sehingga preferensi asli pemilik tidak tersentuh.
Penggunaan
pip install --upgrade wattpdlWattPDL v2.0.0
English
Architecture, config schema, supply chain, and the end of Python 3.9 support.
Breaking changes
- Python 3.9 is no longer supported. Minimum is now Python 3.10 (
requires-python >=3.10; CI tests 3.10 to 3.13). Python 3.9 reached end of life in 2025. - Config schema v2.
~/.wattpdl/config.jsonnow carries"version": 2. Older config files are migrated automatically on read.
Improvements
app.pysplit into aflows/package. Each CLI flow lives in its own module;app.pyis now a thin facade. No command behavior changed. Test coverage is 84%.- Supply chain. Added a hashed dependency snapshot (
requirements.lock.txt) and a CycloneDX SBOM (sbom.json). Pre-commit now runs a local secret scanner over staged files.
Usage
pip install --upgrade wattpdlwattpdl --doctor
wattpdl --helpBahasa Indonesia
Arsitektur, schema config, supply chain, dan akhirnya dukungan Python 3.9.
Breaking changes
- Python 3.9 tidak lagi didukung. Minimal sekarang Python 3.10 (
requires-python >=3.10; CI menguji 3.10 sampai 3.13). Python 3.9 mencapai akhir dukungan pada 2025. - Schema config v2.
~/.wattpdl/config.jsonkini memuat"version": 2. File config lama dimigrasikan otomatis saat dibaca.
Peningkatan
app.pydipecah menjadi paketflows/. Setiap alur CLI ada di modulnya sendiri;app.pykini facade tipis. Tidak ada perilaku perintah yang berubah. Coverage test 84%.- Supply chain. Ditambahkan snapshot dependency dengan hash (
requirements.lock.txt) dan SBOM CycloneDX (sbom.json). Pre-commit sekarang menjalankan pemindai rahasia lokal.
Penggunaan
pip install --upgrade wattpdlwattpdl --doctor
wattpdl --helpWattPDL v1.12.0
English
Search filters, JSON discovery, download history, PDF/EPUB options, and a fix for the broken author endpoint.
New features
- Search filters.
--search-status completed|ongoing,--search-min-chapters N,--search-sort votes|chapters|titleand--search-language NAMEfilter and sort results client-side.--search --jsonprints the results as JSON. - Author info.
--author-info USERlists an author's stories with chapter totals, without downloading.--author-info --jsonprints JSON. - Download history. Successful downloads are recorded in
~/.wattpdl/history.json;--historyand--history --jsonshow them.--no-libraryskips both library and history recording. - PDF layout.
--pdf-pagesize A4|A5and--pdf-font-size N(6-24) control the generated PDFs. - EPUB metadata. The source story URL and Completed/Ongoing status are now written as Dublin Core metadata.
- Watch for scripts.
--watch-notify-jsonprints one JSON line per new chapter;--watch-max-iterations Nis now exposed.
Bug fixes
- Author downloads work again. The old
/users/{username}/stories/publishedendpoint returned 404 for every real author. It is now/users/{username}/stories, verified live. --author-infono longer crashes on a 404 from a deleted or private author.
Usage
pip install --upgrade wattpdlwattpdl --search "Railgun in Fairy Tail" --json --search-status completed --search-sort votes
wattpdl --author-info MisakaLovesYou --json
wattpdl --history --jsonBahasa Indonesia
Filter search, penemuan via JSON, riwayat unduhan, opsi PDF/EPUB, dan perbaikan endpoint penulis yang rusak.
Fitur baru
- Filter search.
--search-status completed|ongoing,--search-min-chapters N,--search-sort votes|chapters|title, dan--search-language NAMEmenyaring serta mengurutkan hasil di sisi klien.--search --jsonmencetak hasil sebagai JSON. - Info penulis.
--author-info USERmenampilkan cerita penulis beserta total chapter tanpa mengunduh.--author-info --jsonmencetak JSON. - Riwayat unduhan. Unduhan sukses tercatat di
~/.wattpdl/history.json;--historydan--history --jsonmenampilkannya.--no-librarymelewati pencatatan. - Tampilan PDF.
--pdf-pagesize A4|A5dan--pdf-font-size N(6-24) mengatur PDF yang dihasilkan. - Metadata EPUB. URL cerita dan status Completed/Ongoing kini ditulis sebagai metadata Dublin Core.
- Watch untuk scripting.
--watch-notify-jsonmencetak satu baris JSON per chapter baru;--watch-max-iterations Nkini tersedia.
Perbaikan bug
- Unduhan per penulis berfungsi lagi. Endpoint lama
/users/{username}/stories/publishedmengembalikan 404 untuk semua penulis nyata. Sekarang/users/{username}/stories, diverifikasi langsung. --author-infotidak crash lagi saat menerima 404 dari penulis yang dihapus atau private.
Penggunaan
pip install --upgrade wattpdlwattpdl --search "Railgun in Fairy Tail" --json --search-status completed --search-sort votes
wattpdl --author-info MisakaLovesYou --json
wattpdl --history --jsonWattPDL v1.11.0
English
Multi-format output, download reports, CLI tooling, and an audit round that raised test coverage.
New features
- Several formats from one download.
--format txt,epubor--format allwrites every requested output from the same downloaded chapters. In mode 2 each format gets its own zip. - Download report.
--report PATH.jsonor.csvrecords story ID, title, mode, formats, chapter counts, timing, and output paths for every download in the run. - Preference commands.
--configshows saved preferences;--config-set file_format=epubchanges one. - Doctor.
--doctorchecks dependency imports, data folders, preferences, and Wattpad API connectivity in one command. - Shell completion.
--completion bash|zsh|fish|powershellprints a completion script for wattpdl flags. - Quiet / verbose.
--quietsuppresses normal output for cron;--verboseprints the active options.
Improvements
- Atomic output files. Writers now write to a temporary file in the target folder and rename it into place, so a crash or write error never leaves a half-written result.
- Test coverage raised from 69% to 82% (307 tests), with an 80% floor enforced in CI.
Usage
pip install --upgrade wattpdlwattpdl --id 398440633 --mode 1 --format txt,epub --report download.json
wattpdl --doctor
wattpdl --completion bash >> ~/.bash_completionBahasa Indonesia
Beberapa format sekaligus, laporan unduhan, tooling CLI, dan audit yang menaikkan coverage test.
Fitur baru
- Beberapa format dari satu unduhan.
--format txt,epubatau--format allmenulis semua output dari chapter yang sama. Pada mode 2, tiap format mendapat zip tersendiri. - Laporan unduhan.
--report PATH.jsonatau.csvmencatat ID cerita, judul, mode, format, jumlah chapter, waktu, dan path output untuk semua unduhan dalam satu sesi. - Perintah preferensi.
--configmenampilkan preferensi tersimpan;--config-set file_format=epubmengubah salah satu. - Doctor.
--doctormengecek dependency, folder data, preferensi, dan konektivitas API Wattpad dalam satu perintah. - Shell completion.
--completion bash|zsh|fish|powershellmencetak script completion untuk flag wattpdl. - Quiet / verbose.
--quietmenekan output normal untuk cron;--verbosemencetak opsi yang aktif.
Peningkatan
- File output atomik. Writer sekarang menulis ke file sementara di folder tujuan lalu memindahkannya saat sukses, jadi crash tidak menyisakan file setengah jadi.
- Coverage test naik dari 69% menjadi 82% (307 test), dengan batas minimum 80% di CI.
Penggunaan
pip install --upgrade wattpdlwattpdl --id 398440633 --mode 1 --format txt,epub --report unduhan.json
wattpdl --doctor
wattpdl --completion bash >> ~/.bash_completionWattPDL v1.10.0
English
Batch downloads from a file and custom file names, plus an audit round.
New features
- Batch from file.
--file PATHdownloads every story listed in a file, one ID or link per line (#for comments), in mode 1 or 2. A failing story is skipped and reported at the end instead of aborting the rest. - Custom file name.
--filename "My Series - Book 1"overrides the output base name for single-story downloads (--id).
Bug fixes
- Long multibyte titles no longer overflow the file name limit.
safe_filenamenow caps by UTF-8 bytes (100 bytes, not 100 characters), so CJK and other multibyte titles cannot exceed the 255-byte limit on Linux/macOS. - Batch runs no longer stop on a deleted or private story.
--usernow skips a story that cannot be fetched (with a warning) and continues with the rest. A failure summary is printed at the end. - A full or read-only disk no longer fails a chapter. Resume progress writes are now best-effort; the chapter still counts as downloaded.
- Saved preferences with an unknown file format fall back to
txtinstead of passing through as-is. - HTTP connection pooling now fits the full worker count (50 instead of 10), so large
--workersvalues reuse connections.
Usage
pip install --upgrade wattpdlwattpdl --file "stories.txt" --mode 1 --format epub
wattpdl --id 398440633 --mode 1 --format epub --filename "My Series - Book 1"Bahasa Indonesia
Batch unduhan dari file dan nama file custom, plus audit round.
Fitur baru
- Batch dari file.
--file PATHmengunduh semua cerita di file, satu ID atau link per baris (#untuk komentar), dalam mode 1 atau 2. Cerita yang gagal dilewati dan dilaporkan di akhir, tidak menghentikan yang lain. - Nama file custom.
--filename "Seri Saya - Buku 1"mengganti nama dasar file output untuk unduhan satu cerita (--id).
Perbaikan bug
- Judul panjang multibyte tidak lagi melebihi batas nama file.
safe_filenamesekarang membatasi berdasarkan byte UTF-8 (100 byte, bukan 100 karakter), jadi judul CJK dan karakter multibyte lain tidak akan melebihi batas 255 byte di Linux/macOS. - Batch tidak lagi berhenti saat cerita dihapus atau di-private.
--usersekarang melewati cerita yang tidak bisa diambil (dengan warning) dan lanjut ke yang lain. Ringkasan kegagalan ditampilkan di akhir. - Disk penuh atau read-only tidak lagi gagal di tengah chapter. Penulisan progress resume sekarang best-effort; chapter tetap dihitung berhasil diunduh.
- Preferensi tersimpan dengan format file tidak dikenal jatuh kembali ke
txtalih-alih diteruskan apa adanya. - Connection pooling HTTP sekarang sesuai worker maksimum (50, bukan 10), sehingga
--workersbesar tetap memakai ulang koneksi.
Penggunaan
pip install --upgrade wattpdlwattpdl --file "stories.txt" --mode 1 --format epub
wattpdl --id 398440633 --mode 1 --format epub --filename "Seri Saya - Buku 1"WattPDL v1.9.0
English
Search results are paged, 10 at a time.
New features
- Search paging.
--searchresults are shown 10 per page; typenfor the next page andpfor the previous one. Indices are global across pages, so story #13 is picked with13no matter which page is on screen, and--selectaccepts the same global numbers in non-interactive mode. --search-limit Ncontrols how many results are fetched (default 40, max 100). Popular queries no longer stop at the top 10.
Usage
pip install --upgrade wattpdlwattpdl --search "Railgun in Fairy Tail"
# In the list, type "n" / "p" to move between pages, then the story indices as usual.Requested in #10, thanks @Vaishnav-Sabari-Girish.
Bahasa Indonesia
Hasil search sekarang ditampilkan per halaman, 10 cerita per halaman.
Fitur baru
- Search paging. Hasil
--searchditampilkan 10 per halaman; ketiknuntuk halaman berikutnya danpuntuk halaman sebelumnya. Nomor indeks global untuk semua halaman, jadi cerita #13 selalu dipilih dengan mengetik13di halaman mana pun, dan--selectmemakai nomor global yang sama di mode non-interaktif. --search-limit Nmengatur berapa banyak hasil yang diambil (default 40, maksimal 100). Query yang sangat populer tidak lagi terhenti di 10 teratas.
Penggunaan
pip install --upgrade wattpdlwattpdl --search "Railgun in Fairy Tail"
# Di daftarnya, ketik "n" / "p" untuk pindah halaman, lalu pilih indeks cerita seperti biasa.Diminta lewat #10, terima kasih @Vaishnav-Sabari-Girish.
WattPDL v1.8.1
English
Small fix: --output-dir now works in interactive mode.
Bug fixes
- --output-dir now applies in interactive mode. Typing Enter at the save-folder prompt saves into the folder passed via
--output-dir; previously the flag was silently ignored in interactive mode and the saved config default was used instead.
Usage
pip install --upgrade wattpdlBahasa Indonesia
Perbaikan kecil: --output-dir sekarang berlaku di mode interaktif.
Perbaikan bug
- --output-dir sekarang berlaku di mode interaktif. Menekan Enter pada prompt folder simpan menyimpan ke folder yang diberikan lewat
--output-dir; sebelumnya flag ini diabaikan diam-diam di mode interaktif dan folder default dari config tersimpan yang dipakai.
Penggunaan
pip install --upgrade wattpdlWattPDL v1.8.0
English
Search Wattpad stories and download fanfics by index.
New features
- Search stories.
--search "<query>"lists the matching stories by index (title, author, chapter count, status) using Wattpad's public search. Without--select, you are asked which indices to download (a range like1-8,10, orall). For scripting, pass them directly:--search "query" --select 1-8,10 --mode 1. Modes 1 and 2 only, like--user.
Usage
pip install --upgrade wattpdlwattpdl --search "Railgun in Fairy Tail"
wattpdl --search "Railgun in Fairy Tail" --select 1-8,10 --mode 1 --format epubRequested in #8, thanks @Vaishnav-Sabari-Girish.
Bahasa Indonesia
Cari cerita Wattpad dan unduh fanfic berdasarkan indeks.
Fitur baru
- Cari cerita.
--search "<query>"menampilkan cerita yang cocok dengan diberi nomor (judul, penulis, jumlah chapter, status) memakai search publik Wattpad. Tanpa--select, kamu ditanya indeks mana yang diunduh (bisa rentang seperti1-8,10, atauall). Untuk scripting, langsung isi:--search "query" --select 1-8,10 --mode 1. Hanya mode 1 dan 2, seperti--user.
Penggunaan
pip install --upgrade wattpdlwattpdl --search "Railgun in Fairy Tail"
wattpdl --search "Railgun in Fairy Tail" --select 1-8,10 --mode 1 --format epubDiminta lewat #8, terima kasih @Vaishnav-Sabari-Girish.
WattPDL v1.7.0
English
Library management, story info, HTTP tuning, and a security hardening pass.
New features
- Library management.
--librarylists every story recorded as fully downloaded;--library-forget <id>stops tracking one story. --update-library. Re-downloads every recorded story that has new chapters on Wattpad in one command; resume progress is kept, so only the new chapters are fetched.--check-updatesand--library --json. Both print machine-readable JSON for scripting and automation.wattpdl --info --id <id>. Shows a story's details (author, chapter count, status, genre, description) without downloading.--retries Nand--timeout N. Control the HTTP retry count per chapter (default 3, max 10) and the timeout of every HTTP request (default 20 seconds).--dry-run. Simulates a download: prints the target file, how many chapters are selected, and how many would be reused from the resume cache, without writing anything.
Bug fixes
- Legacy Windows consoles no longer crash. Stdout and stderr are reconfigured to UTF-8 at startup with a lossy fallback.
- Inline images cannot reach internal networks. Downloads from non-globally-routable hosts (loopback, private ranges, link-local including the cloud metadata endpoint, CGNAT) are rejected, the scheme must be http/https, and images are capped at 25 MB.
- Corrupt cache files no longer crash the tool. The library, progress, config, metadata-cache and update-check loaders now require a JSON object at the top level and treat anything else as missing.
- Stricter argument validation.
--useronly accepts valid Wattpad usernames,--watch-intervalmust be at least 1 second,--retriesat most 10, and--jsonis rejected outside--library/--check-updates.
Improvements
- CI/CD hardened. GitHub Actions pinned to commit SHAs, token permissions reduced to
contents: read(publish keeps onlyid-token: write), pip-audit added to CI, coverage floor 65%, Dependabot for pip and GitHub Actions, branch protection onmain, and the test matrix runs on Python 3.9 to 3.12.
Usage
pip install --upgrade wattpdlwattpdl --library # stories you have downloaded in full
wattpdl --check-updates # which ones have new chapters
wattpdl --update-library # refresh them all
wattpdl --info --id 398440633 # story details, without downloading
wattpdl --dry-run --id 398440633 --mode 1 --format epubBahasa Indonesia
Library management, info cerita, HTTP tuning, dan security hardening.
Fitur baru
- Library management.
--librarymenampilkan semua cerita yang tercatat pernah diunduh penuh;--library-forget <id>berhenti memantau satu cerita. --update-library. Unduh ulang semua cerita tercatat yang punya chapter baru di Wattpad dengan satu perintah; progress resume disimpan, jadi hanya chapter baru yang diunduh.--check-updatesdan--library --json. Keduanya bisa mencetak JSON machine-readable untuk scripting dan otomatisasi.wattpdl --info --id <id>. Menampilkan detail cerita (penulis, jumlah chapter, status, genre, deskripsi) tanpa mengunduh.--retries Ndan--timeout N. Mengatur jumlah retry HTTP per chapter (default 3, maksimal 10) dan timeout setiap request HTTP (default 20 detik).--dry-run. Simulasi unduhan: menampilkan file tujuan, berapa chapter dipilih, dan berapa yang dipakai ulang dari resume cache, tanpa menulis apa pun.
Perbaikan bug
- Console Windows lama tidak crash lagi. Stdout dan stderr dikonfigurasi ulang ke UTF-8 saat start dengan fallback lossy.
- Gambar inline tidak bisa menjangkau jaringan internal. Unduhan dari host yang bukan global routeable (loopback, range privat, link-local termasuk endpoint metadata cloud, CGNAT) ditolak, scheme wajib http/https, dan gambar dibatasi 25 MB.
- File cache rusak tidak crash lagi. Loader library, progress, config, metadata-cache, dan update-check sekarang mewajibkan JSON object di top-level dan memperlakukan selain itu sebagai kosong.
- Validasi argumen lebih ketat.
--userhanya menerima username Wattpad yang valid,--watch-intervalminimal 1 detik,--retriesmaksimal 10, dan--jsonditolak di luar--library/--check-updates.
Peningkatan
- CI/CD diperketat. GitHub Actions di-pin ke commit SHA, permission token dikurangi ke
contents: read(publish hanya memegangid-token: write), pip-audit ditambahkan ke CI, coverage floor 65%, Dependabot untuk pip dan GitHub Actions, branch protection dimain, dan matrix test berjalan di Python 3.9 sampai 3.12.
Penggunaan
pip install --upgrade wattpdlwattpdl --library # cerita yang sudah diunduh penuh
wattpdl --check-updates # mana yang punya chapter baru
wattpdl --update-library # perbarui semuanya
wattpdl --info --id 398440633 # detail cerita, tanpa mengunduh
wattpdl --dry-run --id 398440633 --mode 1 --format epubWattPDL v1.6.0
English
Connection pooling for faster downloads, Pillow is now a declared dependency, and an internal cleanup.
Improvements
- Connection pooling. HTTP requests now reuse TCP/TLS connections per thread instead of a fresh handshake per chapter, which speeds up long downloads, especially with
--workers. - Pillow is now a declared dependency. It was already used for PDF image processing but only arrived transitively through reportlab;
pip install wattpdlnow guarantees it. - Clearer chapter errors. A chapter that is deleted or restricted (404/403 when fetching its text) now shows the same clear message style as the story-level errors.
- Internal cleanup. Shared HTTP session, deduplicated helpers, and tidied modules. Command-line behavior is unchanged.
Bug fixes
- Python 3.9 installs no longer pull a broken reportlab. reportlab 5 declares Python 3.9 support in its metadata but fails to import on 3.9; installs on Python 3.9 are now pinned to reportlab 4.x.
Usage
pip install --upgrade wattpdlBahasa Indonesia
Connection pooling untuk unduhan lebih cepat, Pillow kini dependency resmi, dan pembersihan internal.
Peningkatan
- Connection pooling. Request HTTP sekarang memakai ulang koneksi TCP/TLS per thread alih-alih handshake baru tiap chapter, mempercepat unduhan panjang, terutama dengan
--workers. - Pillow kini dependency resmi. Sebelumnya dipakai untuk pemrosesan gambar PDF tapi hanya datang transitive lewat reportlab;
pip install wattpdlsekarang menjaminnya. - Error chapter lebih jelas. Chapter yang sudah dihapus atau dibatasi (404/403 saat fetch teksnya) sekarang menampilkan pesan sejelas error level cerita.
- Pembersihan internal. Shared HTTP session, helper yang diduplikasi diringkas, dan modul dirapikan. Perilaku command line tidak berubah.
Perbaikan bug
- Install di Python 3.9 tidak lagi menarik reportlab yang rusak. reportlab 5 menyatakan mendukung Python 3.9 di metadata-nya tapi gagal import di 3.9; install di Python 3.9 sekarang di-pin ke reportlab 4.x.
Penggunaan
pip install --upgrade wattpdl