Skip to content

Instantly share code, notes, and snippets.

@mmpx12
Created August 21, 2023 04:20
Show Gist options
  • Save mmpx12/9364f8f9665efade3661a4cf07ae39df to your computer and use it in GitHub Desktop.
Save mmpx12/9364f8f9665efade3661a4cf07ae39df to your computer and use it in GitHub Desktop.
leakedzone downloader
#!/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"
@goldenfreddynecro-boop
Copy link

@FransUrbo can you please explain to me how u got videos to download from leaked zone? I have been trying for a while now but it hasnt worked for me

@FransUrbo
Copy link

@goldenfreddynecro-boop you'll need my fork of the script - https://gist.github.com/FransUrbo/61033475c3409f8b2211c0d23daf8d90.

Basically, they're now streaming the videos in multiples. So you need to download all of them, then merge them into one. That's what my fork is doing. At least it worked a few weeks ago :).

@FransUrbo
Copy link

Oh, and they've also added a throttle on the stream, so if you try to download the parts to fast, they'll block you for a few minutes :( :(.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment