#!/bin/bash

# Declare a variável de URL
url="https://melofficeb2b.pt/wp-content/uploads/2023/"

# Declare o array de paths
paths=("01" "02" "03" "04" "05" "06" "07" "08" "09" "10" "11" "12")

# Percorra o array de paths
for path in "${paths[@]}"; do
    # Construa a URL completa com o path atual
    full_url="$url$path"

    # Execute o comando wget
    wget -r -nd -A "jpeg,jpg,bmp,gif,png" -e "robots=off" "$full_url" || true
done

# Saia com código de sucesso
exit 0
