Nodes/Ray's Orenchi/πŸ”§ Ray's Tools: Prompt Scraper
ComfyUI Node

πŸ”§ Ray's Tools: Prompt Scraper

One node, three prompt sources. Pick a mode and the JS hides widgets for the others. β€’ `Local Folder` β€” random image + extracted prompt from a local folder. β€’ `PromptDexter` β€” random prompt + image from promptdexter.com. β€’ `CivitAI` β€” random prompt + image from civitai.com. Outputs are harmonized to `(prompt_single, prompt_multiline, image, image_path)` so any mode is drop-in compatible with downstream wiring. `image_path` is empty for web modes.

By MutantSparrowΒ·Created 4 months agoΒ·Updated 3 days agoΒ· 1
πŸ”§ Ray's Tools: Prompt Scraper
    • prompt_single
    • prompt_multiline
    • image
    • image_path
    β—„scraper_modeLocal Folderβ–Ί
    β—„seed-1β–Ί
    β—„local__folderβ–Ί
    β—„local__recurse_subfoldersfalseβ–Ί
    β—„local__skip_no_promptfalseβ–Ί
    β—„local__prompt_best_tryfalseβ–Ί
    β—„dexter__category(any)β–Ί
    β—„dexter__clear_cachefalseβ–Ί
    β—„civitai__modeBlue (SFW)β–Ί
    β—„civitai__base_modelAnyβ–Ί
    β—„civitai__periodWeekβ–Ί
    β—„civitai__sortRandomβ–Ί
    β—„civitai__usernameβ–Ί
    β—„local__refresh_listingfalseβ–Ί
    β—„dexter__timeout10β–Ί
    β—„civitai__timeout15β–Ί
    CategoryπŸ‘‘ Ray/πŸ”§ Tools

    Inputs (16)

    NameTypeDefaultDescription
    scraper_modeCOMBOLocal FolderPrompt source to fetch from. Only the widgets for this source are shown.
    seedINT-1-1–2147483647-1 for random; any >=0 value is reproducible.
    local__folderSTRINGLocal mode: absolute path to a folder of images.
    local__recurse_subfoldersBOOLEANfalseLocal mode: walk every subdirectory.
    local__skip_no_promptBOOLEANfalseLocal mode: skip images whose metadata yields no prompt.
    local__prompt_best_tryBOOLEANfalseLocal mode: collapse to one prompt per image; skip repeats.
    dexter__categoryCOMBO(any)PromptDexter mode: sitemap category slug, or (any).
    dexter__clear_cacheBOOLEANfalsePromptDexter mode: drop the recent-pick deque before selecting.
    civitai__modeCOMBOBlue (SFW)CivitAI mode: Blue = SFW; Red = all levels.
    civitai__base_modelCOMBOAnyCivitAI mode: restrict picks to this base model.
    civitai__periodCOMBOWeekCivitAI mode: time window.
    civitai__sortCOMBORandomCivitAI mode: gallery sort order.
    civitai__usernameSTRINGCivitAI mode: restrict pool to one uploader.
    local__refresh_listingoptBOOLEANfalseLocal mode: force a re-scan of the folder.
    dexter__timeoutoptINT102–60PromptDexter mode: HTTP timeout per request.
    civitai__timeoutoptINT152–60CivitAI mode: HTTP timeout per request.

    Outputs (4)

    NameTypeDescription
    prompt_singleSTRINGWhitespace-collapsed single-line prompt (list).
    prompt_multilineSTRINGPrompt with original newlines preserved (list).
    imageIMAGEImage tensor (BHWC float32 [0,1]).
    image_pathSTRINGFor Local mode: absolute path of the source file. Empty for web modes.