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.
π§ 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)
| Name | Type | Default | Description |
|---|---|---|---|
| scraper_mode | COMBO | Local Folder | Prompt source to fetch from. Only the widgets for this source are shown. |
| seed | INT | -1-1β2147483647 | -1 for random; any >=0 value is reproducible. |
| local__folder | STRING | Local mode: absolute path to a folder of images. | |
| local__recurse_subfolders | BOOLEAN | false | Local mode: walk every subdirectory. |
| local__skip_no_prompt | BOOLEAN | false | Local mode: skip images whose metadata yields no prompt. |
| local__prompt_best_try | BOOLEAN | false | Local mode: collapse to one prompt per image; skip repeats. |
| dexter__category | COMBO | (any) | PromptDexter mode: sitemap category slug, or (any). |
| dexter__clear_cache | BOOLEAN | false | PromptDexter mode: drop the recent-pick deque before selecting. |
| civitai__mode | COMBO | Blue (SFW) | CivitAI mode: Blue = SFW; Red = all levels. |
| civitai__base_model | COMBO | Any | CivitAI mode: restrict picks to this base model. |
| civitai__period | COMBO | Week | CivitAI mode: time window. |
| civitai__sort | COMBO | Random | CivitAI mode: gallery sort order. |
| civitai__username | STRING | CivitAI mode: restrict pool to one uploader. | |
| local__refresh_listingopt | BOOLEAN | false | Local mode: force a re-scan of the folder. |
| dexter__timeoutopt | INT | 102β60 | PromptDexter mode: HTTP timeout per request. |
| civitai__timeoutopt | INT | 152β60 | CivitAI mode: HTTP timeout per request. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| prompt_single | STRING | Whitespace-collapsed single-line prompt (list). |
| prompt_multiline | STRING | Prompt with original newlines preserved (list). |
| image | IMAGE | Image tensor (BHWC float32 [0,1]). |
| image_path | STRING | For Local mode: absolute path of the source file. Empty for web modes. |