Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## You may need to play around with the '800' value for some sites - look at the data-widths property in each image for allowed values
- Invoke-WebRequest -uri "htps://yoururl" | Select-Object -ExpandProperty Images | ForEach-Object{ $uri = $(if( $_.src -match '^http' ) { $_.src } else { $_.'data-src' }) -replace '{width}' , '800' ; $uri ; Invoke-WebRequest -uri $uri -OutFile "$(($uri -split '/')[-1])" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement