Last active
January 15, 2021 15:10
-
-
Save jonathanmedd/2115a3be60cfe5ce2cd4a1d812cb9e39 to your computer and use it in GitHub Desktop.
Download Lego Instructions for a Theme
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
Get-BricksetSet -Theme 'Indiana Jones' | ForEach-Object { | |
$i = 1 | |
$instructionsUrls = $_ | Get-BricksetSetInstructions | Select-Object -ExpandProperty url | |
foreach ($instructionsUrl in $instructionsUrls){ | |
$file = "$($_.number)_$($i).pdf" | |
$i++ | |
Start-BitsTransfer -Source $instructionsUrl -Destination "C:\temp\$file" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment