Created
August 21, 2023 04:20
-
-
Save mmpx12/9364f8f9665efade3661a4cf07ae39df to your computer and use it in GitHub Desktop.
leakedzone downloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
function GetVideos(){ | |
username="$1" | |
page=0 | |
while true; do | |
a=($(curl -s "https://leakedzone.com/$username?page=$page&type=videos&order=0" \ | |
-H 'X-Requested-With: XMLHttpRequest' | \ | |
jq -r '.[]|(.slug + "/" + .stream_url_play)')) | |
n=0 | |
[[ "${#a[@]}" -eq 0 ]] && return | |
for i in "${a[@]}"; do | |
slug="$(cut -d "/" -f1 <<< "$i")" | |
path="$(cut -d "/" -f2 <<< "$i")" | |
url="$(echo -n "$path" | cut -c17- | rev | cut -c17- | base64 -d)" | |
yt-dlp "$url" -o "videos/$slug.%(ext)s" > /dev/null | |
echo -ne "\rpage: $page, video: $n/${#a[@]} " | |
((n++)) | |
done | |
((page++)) | |
done | |
} | |
function GetPhotos(){ | |
username="$1" | |
page=0 | |
while true; do | |
a=($(curl -s "https://leakedzone.com/$username?page=$page&type=photos&order=0" \ | |
-H 'X-Requested-With: XMLHttpRequest' | jq -r '.[].image')) | |
[[ "${#a[@]}" -eq 0 ]] && return | |
n=0 | |
for i in "${a[@]}"; do | |
wget -qP photos "https://leakedzone.com/storage/$i" | |
echo -ne "\rpage: $page, image: $n/${#a[@]} " | |
((n++)) | |
done | |
((page++)) | |
done | |
} | |
GetPhotos "$1" | |
GetVideos "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment