You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
1.3 KiB
23 lines
1.3 KiB
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/OanuTbwSS1w/photos?sort=uploadTime&start_photo_id=0877Id9znX4&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[].videoUrls.fullsize")
|
|
#--data-urlencode 'csrfToken=55G9WSTNtXWCh9cc5nh1YQ==' | jq -r -c ".body.photos[].imageUrls.print")
|
|
index=1
|
|
for item in ${items[@]}; do
|
|
if [ $item != "null" ]; then
|
|
#echo $item
|
|
wget -O ~/Downloads/movies/$index.mp4 $item
|
|
fi
|
|
#echo $index
|
|
#echo $index.jpeg
|
|
#wget -O images/$index.jpeg $item
|
|
((index++))
|
|
done
|