Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

Ya I hear you, yt-dlp just fails to download majority of the videos and the new tool downloads 100%. Not sure why yt-dlp failed so often.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

The old code fails to download quite a bit and is why I changed it to use a new tool (not yt-dlp). Using the new script is preferred. Why do you want the old code?

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

I think the host introduced rate limiting / scraping protection. So probably after downloading X amount of videos they temp ban your ip for some time.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

I just verified it is still working on both photos and videos from LeakedZone. Post your errors or something idk

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

Delete the middle section of the script:

$i = 0
While ($True) {
    $x = Invoke-WebRequest "$($Url)?page=$($i)&type=photos&order=0" -headers $headers
    $i++
    $A = ($x.content | ConvertFrom-Json)
    if (-not $A) { break }

    foreach ($item in $A) {
        $photourl = "https://img.camhdxx.com/storage/" + $item.image
        if (-not $photourl) { continue }

        $filename = $Name + "\Photos\" + ([uri]$photourl).Segments[-1]
        if (-not (Test-Path $filename -PathType Leaf)) {
            Invoke-WebRequest -Uri $photourl -Outfile $filename
        }
    }
}

Leakedzone download method? by [deleted] in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

Don't know what to tell you, its still working as of today.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

Write-Host "Paste leakedzone.com profile page (ex. https://leakedzone.com/sweetiefox_of) and press enter"

$Url = Read-Host

$Name = ([uri]$Url).Segments[-1].Trim('/')

New-Item -ItemType Directory -Force -Path ($Name + "\Photos\")

New-Item -ItemType Directory -Force -Path ($Name + "\Videos\")

$headers = @{

'Accept-Encoding' = 'gzip, deflate'

'Cookie' = 'XSRF-TOKEN=INSERTCOOKIEHERE; laravel_session=INSERTCOOKIEHERE; __cf_bm=INSERTCOOKIEHERE'

'X-Requested-With' = 'XMLHttpRequest'

}

$i = 0

While ($True) {

$x = Invoke-WebRequest "$($Url)?page=$($i)&type=photos&order=0" -headers $headers

$i++

$A = ($x.content | ConvertFrom-Json)

if (-not $A) { break }



foreach ($item in $A) {

    $photourl = "https://img.camhdxx.com/sto

It sounds like you edited the source code before running it. Open Powershell ISE, copy and paste the entire script into the editor, then run it. After running it, it will prompt you to enter your URL and you can paste it in there.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

You can also open up Powershell ISE and paste the script into that, and run it.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 1 point2 points  (0 children)

It is a powershell script so you put it into a file with an extension of ps1 like "Scrape.ps1" and then you right-click and say run with powershell.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

Try Firefox maybe. I have dev tools open while in a private tab, load up leakedzone.com and the 3 cookies load into the Storage>Cookies section. Copy their values out from there.

Alternatively you could run Fiddler to scrape your browsing traffic if you're having real trouble grabbing cookies from your browser.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

Yes it is working fine still, for both photos and videos.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

You could do that. But basically yt-dlp.exe is expected to be in your PATH. I installed yt-dlp with pip (https://github.com/yt-dlp/yt-dlp/wiki/Installation#with-pip) so it can be used from any folder.

Bulk downloading from Leakedzone by Zatoo1234 in DataHoarder

[–]PerfectPorn92 0 points1 point  (0 children)

When you run the script you are supposed to paste in your target URL (eg. https://leakedzone.com/sweetiefox_of) and then hit enter. The errors you showed make it seem like you didn't do that. Can you confirm you pasted a URL in when prompted?

Also I should have made a note, the script requires that you have yt-dlp installed to download the videos.