Public/Get-Sudoku.ps1
function Get-Sudoku { Invoke-WebRequest -Uri 'https://www.nrc.nl/rubriek/sudoku/' | Select-Object -ExpandProperty Links | Select-Object -ExpandProperty HRef | Where-Object { $_ -like '/nieuws/*'} | ForEach-Object { $Url = "https://www.nrc.nl$($_)" $DateElements = $_ -split '/' $Date = Get-Date -Year $DateElements[2] -Month $DateElements[3] -Day $DateElements[4] [PSCustomObject][Ordered]@{ PSTypeName = 'UncommonSense.Nrc.Article' Url = $Url Date = $Date Title = 'Sudoku' Body = $Url } } } |