Public/Get-HeinDeKort.ps1
function Get-HeinDeKort { $DutchCulture = New-Object -TypeName System.Globalization.CultureInfo -ArgumentList 'nl-NL' Invoke-WebRequest -Uri 'https://www.parool.nl/strips-en-puzzels/bekijk-hier-alle-cartoons-van-hein-de-kort~bb6fb82d/' ` | Select-Object -ExpandProperty Images | Where-Object { $_.'data-original' } | ForEach-Object { $DateText = $_.'data-title' -replace '^\s*', '' -replace '\s*$', '' -replace '\.$', '' $Date = [DateTime]::ParseExact($DateText.ToLowerInvariant(), 'd MMMM yyyy', $DutchCulture) [PSCustomObject]@{ PSTypeName = 'UncommonSense.Parool.Article' Url = $_.'data-original' Date = $Date Title = 'Hein de Kort' Body = $_.'data-original' } } } |