Asset Batch Download

action_asset_batch_download · action · Utility · Available · v1.0.0

Description

Download an array of binary URLs (images, PDF, video, CSS, JS) in parallel and save them preserving the site path tree. SHA-256 dedup with resume, atomic tmp+rename writes, bounded worker pool — the companion of the Recursive Spider for offline mirrors.

⚙️ Configuration parameters

Fields shown in the editor when configuring the node. Generated directly from the NodeDefconfigFields.

FieldTypeRequiredDefaultDescription
items
URL da scaricare
stringyes
https://x.com/img/a.png https://x.com/img/b.jpg — OR — JSON [{"url":"...","savePath":"img/a.png"}]
Uno per riga o virgola-separati. In alternativa JSON array di {url, savePath?}. savePath è relativo a basePath; se omesso, derivato da URL.pathname.
basePath
Directory base (assoluta)
stringyes
/opt/zeliai/shared/mirror/zelistore.it
Directory dove salvare. DEVE essere assoluta. Verrà creata se non esiste. Tutti i file finiscono dentro questa cartella (traversal-safe).
concurrency
Concorrenza download
numberno4Numero di download paralleli. Default 4. Max 16. Più alto = più veloce ma più aggressivo sul server.
perHostMinDelayMs
Delay minimo per host (ms)
numberno100Pausa minima tra request allo stesso host. Asset = file statici servibili da CDN, default 100ms basso.
timeoutMs
Timeout per asset (ms)
numberno30000Timeout sulla singola download. Default 30s. Aumenta per video grandi.
maxAssets
Max asset per run
numberno1000Hard cap sul numero di asset scaricati. Default 1000, max 50000.
maxTotalBytes
Max bytes totali
numberno1073741824Hard cap sui bytes totali scaricati nella run. Default 1 GiB. Quando raggiunto, gli asset rimanenti vengono marcati "skipped-cap".
maxPerAssetBytes
Max bytes per asset
numberno52428800Hard cap sulla singola download. Default 50 MiB. Asset più grandi vengono marcati "skipped-cap".
resumeOnSha256Match
Resume su SHA256 esistente
booleannotrueSe ON e il file esiste già su disco, calcola SHA-256 locale e skippa la fetch (risparmia banda). Spegnere per forzare re-download.
referer
Referer (esplicito)
stringno
https://x.com/
Header Referer da inviare. Alcuni CDN bloccano hotlink senza Referer corretto.
userAgent
User-Agent
stringnoFlowForge-AssetFetch/1.0User-Agent dichiarato. Default RFC-compliant.

💡 Configuration example

JSON snippet of the node as it appears in the workflow. Values are derived fromdefaultValue and from required parameters.

{
  "id": "node-action_asset_batch_download-1",
  "defId": "action_asset_batch_download",
  "label": "Asset Batch Download",
  "config": {
    "items": "https://x.com/img/a.png\nhttps://x.com/img/b.jpg\n— OR — JSON [{\"url\":\"...\",\"savePath\":\"img/a.png\"}]",
    "basePath": "/opt/zeliai/shared/mirror/zelistore.it",
    "concurrency": 4,
    "perHostMinDelayMs": 100,
    "timeoutMs": 30000,
    "maxAssets": 1000,
    "maxTotalBytes": 1073741824,
    "maxPerAssetBytes": 52428800,
    "resumeOnSha256Match": true,
    "userAgent": "FlowForge-AssetFetch/1.0"
  }
}

🔗 Related nodes in the same category

Ready to use Asset Batch Download?

Available now on all FlowForge plans. Try it free without a credit card.

Start freeBrowse all nodes