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 { $Url = "https://www.parool.nl$($_)" $Document = ConvertTo-HtmlDocument -Text (Invoke-WebRequest -Uri $Url | Select-Object -ExcludeProperty Content) [PSCustomObject][Ordered]@{ PSTypeName = 'UncommonSense.Parool.Article' Url = $Url Date = [DateTime]::ParseExact(($Document | Select-HtmlNode -CssSelector '.artstyle__production__date' | Get-HtmlNodeText), 'd MMMM yyyy', $DutchCulture) Title = $Document | Select-HtmlNode -CssSelector h1 | Get-HtmlNodeText Body = $Document | Select-HtmlNode -CssSelector 'p.artstyle__paragraph' -All | Get-HtmlNodeText -SkipRemoveLineBreaks } } } |