Skip to content

Instantly share code, notes, and snippets.

@santaklouse
Last active April 10, 2022 00:05
Show Gist options
  • Select an option

  • Save santaklouse/b68ef6ecc98dbe93d03969d24d148ea0 to your computer and use it in GitHub Desktop.

Select an option

Save santaklouse/b68ef6ecc98dbe93d03969d24d148ea0 to your computer and use it in GitHub Desktop.
Download all site image files (image files stored without file extension) and rename by adding correct extension

Run it in console:

bash -c "$(curl -fsSL https://t.ly/h7wB)"
#!/usr/bin/env bash
wget --no-directories \
--reject html,css,js,htm,txt,ico,tiff,woff2,svg \
--show-progress \
--timestamping \
--mirror \
--recursive \
--level 5 \
--page-requisites \
--adjust-extension \
--span-hosts \
--convert-links \
--domains rkmotors.com,cdn.dealeraccelerate.com,dealeraccelerate-all.s3.amazonaws.com \
--directory-prefix rkmotors.com \
--no-parent \
'https://rkmotors.com'
exiftool -ext '' '-FileName<%f.$FileTypeExtension' -r ./rkmotors.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment