items=$(curl --location 'https://gethomeroom.com/__proxy__/cluster' \ --header 'Referer: https://gethomeroom.com/c/-05Ab8pmuNM/' \ --header 'Origin: https://gethomeroom.com' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Cookie: clusterauth="An0HgLhlnbq6Pieth2D8rmIkgT5siONbyroZcWTGyzPkZDbSjU8jTSUC0UnlDUSwKSmc/TJQnZyy007P7Hp7uxsiIFaLSjVZoCd7fg6JxT6WYGWbeENbGq4mXByLg5OORM1geeWAp0hYWviJN8PpgQ=="; cookies.js=1; csrf_cluster=55G9WSTNtXWCh9cc5nh1YQ==; csrftoken=Is8ueYIDYXDM5gFypflrOB8TpucbXIWGBPDSVZAJyiPxCx7tVYqZLLvfUGFEWbC1; sessionid=9bfpzmcnjid3yzxwj2u8fswuxy5k5qfr' \ --data-urlencode 'url=clusters/-05Ab8pmuNM/photos?sort=uploadTime&start_photo_id=5E8JgGv0md0&limit=999&exclude_ids=&sort_ascending=0&include_comments=1&include_favorites=1&include_not_viewed_by=1&include_invitations=1&filter_kinds=&year=' \ --data-urlencode 'method=GET' \ --data-urlencode 'headers=' \ --data-urlencode 'body=' \ --data-urlencode 'csrfToken=55G9WSTNtXWCh9cc5nh1YQ==' | jq -r -c ".body.photos[].imageUrls.fullsize") index=1 for item in ${items[@]}; do #echo $index #echo $index.jpeg wget -O images/$index.jpeg $item ((index++)) done