ComfyUI Node
Nougan Pixiv Scraper π ΏοΈ
Download the original images of a pixiv artist's works (or one artwork) into a folder in the output directory, with optional convert / compress / sequential-rename post-processing. Paced requests; see the docs page for pixiv's terms.
Nougan Pixiv Scraper π
ΏοΈ
- folder
- count
βurlβΊ
βmax_works20βΊ
βincludeillustrations + mangaβΊ
βordernewest firstβΊ
βdelay1.0βΊ
βskip_existingtrueβΊ
βconvert_formatoriginalβΊ
βrenamefalseβΊ
βcompressfalseβΊ
βshow_previewtrueβΊ
βfoldernougan_pixivβΊ
βcookieβΊ
βoverwritefalseβΊ
CategoryNougan
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| url | STRING | Artist page or artwork URL, e.g. https://www.pixiv.net/en/users/124609772/artworks or https://www.pixiv.net/en/artworks/12345678. A bare number is read as an artist ID. | |
| max_works | INT | 201β5000 | How many works to fetch. A work can hold several pages, so the image count can be higher. |
| include | COMBO | illustrations + manga | 3 options: illustrations + manga, illustrations, manga |
| order | COMBO | newest first | 2 options: newest first, oldest first |
| delay | FLOAT | 1.00.5β10 | Seconds to wait between requests. Keep it polite: pixiv's terms prohibit loading its servers excessively. |
| skip_existing | BOOLEAN | true | Skip pages already in the folder (matched by name, ignoring the extension). Works when 'rename' is off; renamed files can't be matched. Ignored when 'overwrite' is on. |
| convert_format | COMBO | original | Re-encode every image to this format with ImageMagick. 'jpeg' writes .jpeg, 'jpg' writes .jpg. The originals are deleted after conversion. |
| rename | BOOLEAN | false | When done, rename to 001.ext, 002.ext, ... ordered by work id and page. Numbering continues after any NNN files already in the folder. |
| compress | BOOLEAN | false | Maximum compression for the target format (png level 9, jpeg q85, webp method 6). JPEG and WebP are lossy; leave this off to keep the files exactly as posted. |
| show_preview | BOOLEAN | true | Show the live preview window on the node. |
| folder | STRING | nougan_pixiv | Where to save, relative to ComfyUI's output folder (nesting ok: datasets/artist). Empty = pixiv_<artist id>. |
| cookieopt | STRING | Your pixiv PHPSESSID cookie. Needed for R-18 and login-only works; public works may work without it. Leave empty to use PIXIV_PHPSESSID or nougan_pixiv_credentials.json instead - keeps the session out of your workflow files and PNG metadata. | |
| overwriteopt | BOOLEAN | false | Re-download pages that already exist in the folder and replace them (also removes an older converted copy of the same page, e.g. a .webp). Off = existing pages are skipped when skip_existing is on. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| folder | STRING | β |
| count | INT | β |