- Сохраняем скрипт в файл
image.sh
и делаем его исполняемым (chmod +x image.sh
)
#!/bin/bash
curl "https://tobarhiv.72to.ru/Pages/ImageFilePart.ashx?Crop=False&Id=$1&Page=0&Zoom=1" \
--output images/$2.jpeg \
-H 'Accept: image/avif,image/webp,image/apng,image/svg+xml,image/*,*/*;q=0.8' \
-H 'Accept-Language: en-GB,en;q=0.9,it;q=0.8,en-US;q=0.7' \
-H 'Connection: keep-alive' \