mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-10 21:33:47 +02:00
Add -useBasicParsing
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
param($RSS_URL = "https://yahoo.com/news/rss/world", [int]$MaxCount = 20)
|
||||
|
||||
try {
|
||||
[xml]$Content = (invoke-webRequest -URI $RSS_URL -useBasicParsing).Content
|
||||
[xml]$Content = (invoke-webRequest -uri $RSS_URL -useBasicParsing).Content
|
||||
"`n🌍 $($Content.rss.channel.title) 🌏"
|
||||
|
||||
[int]$Count = 0
|
||||
|
Reference in New Issue
Block a user