PowerShell:陸上自衛隊のイラク派遣日報をまとめてダウンロードする

$source = "https://www.asahi.com/articles/ASL4J669JL4JUEHF016.html" $folder = "C:\Users\Hideto\pdf" $result = Invoke-WebRequest $source -UseBasicParsing $urls = $result.Links.href | Get-Unique | where { $_ -match ".pdf" } foreach ($url in $urls) { $file = ($url -split "/")[-1] Invoke-WebRequest -Ur…