Public/Get-RoosSchlikker.ps1
function Get-RoosSchlikker { $DutchCulture = New-Object -TypeName System.Globalization.CultureInfo -ArgumentList 'nl-NL' Invoke-WebRequest -Uri 'https://www.parool.nl/auteur/roos-schlikker' ` | Select-Object -ExpandProperty Links | Select-Object -ExpandProperty href | Where-Object { $_ -like '*/columns-opinie/*' -or $_ -like '*/ps/*' } | ForEach-Object { $Document = ConvertTo-HtmlDocument -Text (Invoke-WebRequest -Uri $_ | Select-Object -ExcludeProperty Content) $DateText = $Document | Select-HtmlNode -CssSelector '.artstyle__production__date' | Get-HtmlNodeText [PSCustomObject][Ordered]@{ PSTypeName = 'UncommonSense.Parool.Article' Url = $_ Date = [DateTime]::ParseExact($DateText, 'd MMMM yyyy', $DutchCulture) Title = $Document | Select-HtmlNode -CssSelector h1 | Get-HtmlNodeText Body = $Document | Select-HtmlNode -CssSelector 'p.artstyle__paragraph' -All | Get-HtmlNodeText -SkipRemoveLineBreaks } } } |