mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-21 23:43:25 +01:00
Updated watch-news.ps1
This commit is contained in:
parent
e52d80980c
commit
f316655358
@ -12,8 +12,8 @@
|
|||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./watch-news.ps1
|
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
|
14:29 Niger coup: Ecowas deadline sparks anxiety in northern Nigeria
|
||||||
...
|
...
|
||||||
.LINK
|
.LINK
|
||||||
@ -44,9 +44,10 @@ try {
|
|||||||
[xml]$content = (Invoke-WebRequest -URI $URL -useBasicParsing).Content
|
[xml]$content = (Invoke-WebRequest -URI $URL -useBasicParsing).Content
|
||||||
$title = $content.rss.channel.title.toUpper()
|
$title = $content.rss.channel.title.toUpper()
|
||||||
$link = $content.rss.channel.link
|
$link = $content.rss.channel.link
|
||||||
Write-Host "`n UTC $title - " -noNewline
|
Write-Host "`n UTC HEADLINES (by: " -noNewline
|
||||||
Write-Host $link -foregroundColor blue
|
Write-Host $link -foregroundColor blue -noNewline
|
||||||
Write-Host " --- -----------------------------------------------------------------------"
|
Write-Host ")"
|
||||||
|
Write-Host " --- ------------------------------------------------"
|
||||||
$latestTimestamp = "2000-01-01"
|
$latestTimestamp = "2000-01-01"
|
||||||
$icon = ""
|
$icon = ""
|
||||||
do {
|
do {
|
||||||
|
Loading…
Reference in New Issue
Block a user