Author Topic: Download multiple files or entire archive  (Read 4395 times)

There are already 232 Smart Materials available in Substance Share. Is there a conventient way to get them all?

Honestly, who wouldn't want them all on their local hard drive, especially when all you get from within Substance Painter is an inconvenient link to the Substance Share website, i. e. there's no direct integration.

Please provide support for downloading multiple files at once or the entire archive or at least categories as archive. Speaking of which: Is there a limit about how many substances one can download?

There is no limit as to how many assets one can download, but there is no way to batch download assets at the moment.

there's now:
Code: [Select]
cookie="steal from browser"

for page in $(seq $from $to)
  do echo CAT "$cat&page=$page" >&2
  curl "$cat&page=$page" | \
    grep -Eo 'a href="/libraries/[0-9]+"><div class="asset-top' | \
    grep -Eo 'libraries/[0-9]+'
done | while read item
  do cat > /dev/shm/sbd.curlcfg <<END
    -H "dnt: 1"
    -H "accept-encoding: gzip, deflate, br"
    -H "accept-language: en-US,en;q=0.9,de;q=0.8"
    -H "user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.170 Safari/537.36"
    -H "accept: text/html, application/xhtml+xml, application/xml"
    -H "referer:$item/download_file"
    -H "authority:"
    -H "cookie: _allegorithmic-substance-marketplace_session=$cookie"
    -H "x-xhr-referer:$item/download_file"
  filename="$(curl "$item" -K /dev/shm/sbd.curlcfg | \
    grep -Eo '<div class="col-md-5 text-muted text-right"><p>.*File Name: .*?<br />' | \
    sed 's/.*File Name: //;s/<br.*//')"
  loc="$(curl -K /dev/shm/sbd.curlcfg "$item/download_file" | sed 's/.*href="//;s/".*//;s/amp;//g')"
  echo FILE $filename $loc >&2
  curl "$loc" -K /dev/shm/sbd.curlcfg -o "$filename"

Last Edit: July 30, 2018, 08:49:35 pm