webtoon-dl-gif-support/README.md

71 lines
2.5 KiB
Markdown
Raw Permalink Normal View History

2023-12-21 09:27:00 -08:00
# webtoon-dl
2024-04-13 22:20:57 -07:00
Download [webtoon](https://www.webtoons.com/en/) comics as PDF or CBZ using a terminal/command line.
2023-12-21 09:27:00 -08:00
2023-12-21 09:50:19 -08:00
## Usage
```shell
2023-12-24 20:12:52 -08:00
# download single episodes
2023-12-29 13:33:50 -08:00
webtoon-dl "<your-webtoon-episode-url>"
2023-12-24 20:12:52 -08:00
2024-01-01 11:50:39 -04:00
# download entire series, default 10 episodes per pdf
2023-12-29 13:33:50 -08:00
webtoon-dl "<your-webtoon-series-url>"
2023-12-24 20:12:52 -08:00
2024-04-13 22:20:57 -07:00
# download as cbz (default is pdf)
webtoon-dl --format cbz "<your-webtoon-series-url>"
2024-01-01 11:50:39 -04:00
# specify a range of episodes (inclusive on both ends)
2023-12-29 13:33:50 -08:00
webtoon-dl --min-ep=10 --max-ep=20 "<your-webtoon-series-url>"
2024-01-01 11:50:39 -04:00
# change the number of episodes per file, e.g. this would create 11 files
webtoon-dl --min-ep=10 --max-ep=20 --eps-per-file=1 "<your-webtoon-series-url>"
# download entire series into a single file (GENERALLY NOT RECOMMENDED)
webtoon-dl --eps-per-file=1000000 "<your-webtoon-series-url>"
2023-12-21 09:50:19 -08:00
```
2024-01-01 11:50:39 -04:00
> [!IMPORTANT]
> The episode numbers specified in `--min-ep` and `--max-ep` will correspond to the URL parameter `&episode_no=`, which may be different from the episode number in the title
> [!IMPORTANT]
2023-12-29 13:33:50 -08:00
> Some terminal settings (e.g. [Oh My Zsh](https://ohmyz.sh)) make it so pasted URLs will be [automatically escaped](https://github.com/ohmyzsh/ohmyzsh/issues/7632).
> You want to EITHER surround your unescaped webtoon URL with double quotes (otherwise you'll get something like a "no matches found" error) OR leave the double quotes off escaped URLs.
> So either of these will work:
2023-12-29 13:34:38 -08:00
> - `webtoon-dl "https://www.webtoons.com/.../list?title_no=123"`
> - `webtoon-dl https://www.webtoons.com/.../list\?title_no\=123`
>
2023-12-29 13:33:50 -08:00
> But this won't work:
2023-12-29 13:34:38 -08:00
> - `webtoon-dl "https://www.webtoons.com/.../list\?title_no\=123"`
2023-12-29 13:33:50 -08:00
2023-12-21 09:27:00 -08:00
## Installation
```shell
2024-01-23 18:05:37 -08:00
# homebrew
2023-12-21 09:27:00 -08:00
brew install robinovitch61/tap/webtoon-dl
2024-01-23 18:05:37 -08:00
# upgrade using homebrew
2023-12-21 09:27:00 -08:00
brew update && brew upgrade webtoon-dl
2024-01-23 18:05:37 -08:00
# windows with winget
winget install robinovitch61.webtoon-dl
2023-12-21 09:27:00 -08:00
2024-01-23 18:05:37 -08:00
# windows with scoop
scoop bucket add robinovitch61 https://github.com/robinovitch61/scoop-bucket
scoop install webtoon-dl
2023-12-21 09:27:00 -08:00
2024-01-23 18:05:37 -08:00
# windows with chocolatey
choco install webtoon-dl
2023-12-21 09:27:00 -08:00
2024-01-23 18:05:37 -08:00
# with go (https://go.dev/doc/install)
2023-12-21 09:27:00 -08:00
go install github.com/robinovitch61/webtoon-dl@latest
```
2024-01-23 18:05:37 -08:00
Alternatively, download the relevant binary for your operating system (MacOS = Darwin) from
the [latest github release](https://github.com/robinovitch61/webtoon-dl/releases). Unpack/extract it, then move the
binary or .exe to somewhere accessible in your `PATH`, e.g. `mv ./webtoon-dl /usr/local/bin`.
## Build from Source (Mac, Linux, Windows)
2024-01-23 18:05:37 -08:00
Clone this repo, build from source with `cd <cloned_repo> && go build`. This will create the executable (e.g. `webtoon-dl`) in the current directory.