Public/Get-FilmtheaterHilversum.ps1
function Get-FilmtheaterHilversum { Invoke-WebRequest -Uri https://www.filmtheaterhilversum.nl/films/ ` | Select-Object -ExpandProperty Content ` | pup '.film-index__film attr{href}' --plain ` | ForEach-Object { $Url = "https://www.filmtheaterhilversum.nl$($_)" $Content = Invoke-WebRequest -Uri $Url | Select-Object -ExpandProperty Content [PSCustomObject]@{ PSTypeName = 'UncommonSense.Cinema.Film' Url = $Url Date = (Get-Date) # FIXME Title = ($Content | pup 'h1.featured__title text{}' --plain) Body = ($Content | pup '.film__synopsis__intro text{}' --plain) -join ' ' } } } |