Nodes/Nougan Nodes/Nougan Pixiv Scraper πŸ…ΏοΈ
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.

By WinnouganΒ·Created 4 months agoΒ·Updated 3 days agoΒ· 31
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)

    NameTypeDefaultDescription
    urlSTRINGArtist 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_worksINT201–5000How many works to fetch. A work can hold several pages, so the image count can be higher.
    includeCOMBOillustrations + manga3 options: illustrations + manga, illustrations, manga
    orderCOMBOnewest first2 options: newest first, oldest first
    delayFLOAT1.00.5–10Seconds to wait between requests. Keep it polite: pixiv's terms prohibit loading its servers excessively.
    skip_existingBOOLEANtrueSkip 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_formatCOMBOoriginalRe-encode every image to this format with ImageMagick. 'jpeg' writes .jpeg, 'jpg' writes .jpg. The originals are deleted after conversion.
    renameBOOLEANfalseWhen done, rename to 001.ext, 002.ext, ... ordered by work id and page. Numbering continues after any NNN files already in the folder.
    compressBOOLEANfalseMaximum 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_previewBOOLEANtrueShow the live preview window on the node.
    folderSTRINGnougan_pixivWhere to save, relative to ComfyUI's output folder (nesting ok: datasets/artist). Empty = pixiv_<artist id>.
    cookieoptSTRINGYour 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.
    overwriteoptBOOLEANfalseRe-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)

    NameTypeDescription
    folderSTRINGβ€”
    countINTβ€”