mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-11-22 07:53:21 +01:00
Update list-news.ps1 and list-headlines.ps1
This commit is contained in:
parent
8f9bfa655d
commit
71eaa3e6f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user