mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-07-08 00:16:49 +02:00
Update list-news.ps1 and list-headlines.ps1
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
param([string]$RSS_URL = "https://yahoo.com/news/rss/world", [int]$maxCount = 20)
|
||||
param([string]$RSS_URL = "https://www.yahoo.com/news/rss", [int]$maxCount = 20)
|
||||
|
||||
try {
|
||||
[xml]$content = (Invoke-WebRequest -uri $RSS_URL -useBasicParsing).Content
|
||||
|
@ -19,7 +19,7 @@
|
||||
Author: Markus Fleschutz | License: CC0
|
||||
#>
|
||||
|
||||
param([string]$RSS_URL = "https://yahoo.com/news/rss/world", [int]$maxLines = 24, [int]$speed = 10)
|
||||
param([string]$RSS_URL = "https://www.yahoo.com/news/rss", [int]$maxLines = 24, [int]$speed = 10)
|
||||
|
||||
try {
|
||||
[xml]$content = (Invoke-WebRequest -URI $RSS_URL -useBasicParsing).Content
|
||||
|
Reference in New Issue
Block a user