Public/Get-Dirkjan.ps1
function Get-DirkJan { $DutchCulture = New-Object -TypeName System.Globalization.CultureInfo -ArgumentList 'nl-NL' Invoke-WebRequest -Uri 'https://www.parool.nl/kunst-media/alle-strips-van-dirkjan~bb8266d2/' ` | Select-Object -ExpandProperty Images | Where-Object { $_.'data-original' } | ForEach-Object { $DateText = $_.'data-title' -replace '^\s*', '' -replace '\s*$', '' -replace '\.$', '' $Date = [DateTime]::ParseExact($DateText.ToLowerInvariant(), [string[]]('d MMMM yyyy', 'd MMMM'), $DutchCulture, 'None') [PSCustomObject]@{ PSTypeName = 'UncommonSense.Parool.Article' Url = $_.'data-original' Date = $Date Title = 'Dirkjan' Body = $_.'data-original' } } } |