From f3166553586e3ae1db77b4cee562ac8f573d80da Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Wed, 13 Nov 2024 15:16:35 +0100 Subject: [PATCH] Updated watch-news.ps1 --- scripts/watch-news.ps1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/watch-news.ps1 b/scripts/watch-news.ps1 index 01003728..40b3962c 100755 --- a/scripts/watch-news.ps1 +++ b/scripts/watch-news.ps1 @@ -12,8 +12,8 @@ .EXAMPLE PS> ./watch-news.ps1 - UTC Yahoo News - Latest News & Headlines - https://www.yahoo.com/news/world - --- ----------------------------------------------------------------------- + UTC HEADLINES (by: https://www.yahoo.com/news/world) + --- ------------------------------------------------ 14:29 Niger coup: Ecowas deadline sparks anxiety in northern Nigeria ... .LINK @@ -44,9 +44,10 @@ try { [xml]$content = (Invoke-WebRequest -URI $URL -useBasicParsing).Content $title = $content.rss.channel.title.toUpper() $link = $content.rss.channel.link - Write-Host "`n UTC $title - " -noNewline - Write-Host $link -foregroundColor blue - Write-Host " --- -----------------------------------------------------------------------" + Write-Host "`n UTC HEADLINES (by: " -noNewline + Write-Host $link -foregroundColor blue -noNewline + Write-Host ")" + Write-Host " --- ------------------------------------------------" $latestTimestamp = "2000-01-01" $icon = "" do {