diff --git a/Scripts/list-news.ps1 b/Scripts/list-news.ps1 index 8309e403..8800e4aa 100755 --- a/Scripts/list-news.ps1 +++ b/Scripts/list-news.ps1 @@ -8,7 +8,7 @@ param($RSS_URL = "https://yahoo.com/news/rss/world", [int]$MaxCount = 20) try { - [xml]$Content = (invoke-webRequest -URI $RSS_URL).Content + [xml]$Content = (invoke-webRequest -URI $RSS_URL -useBasicParsing).Content "`nšŸŒ $($Content.rss.channel.title) šŸŒ" [int]$Count = 0 diff --git a/Scripts/list-weather.ps1 b/Scripts/list-weather.ps1 index 9bb5c1f6..ffd87f67 100755 --- a/Scripts/list-weather.ps1 +++ b/Scripts/list-weather.ps1 @@ -8,7 +8,7 @@ param($Location = "") # empty means determine automatically try { - $Weather = (Invoke-WebRequest http://wttr.in/${Location}?format=j1 -UserAgent "curl" ).Content | ConvertFrom-Json + $Weather = (Invoke-WebRequest http://wttr.in/${Location}?format=j1 -UserAgent "curl" -useBasicParsing).Content | ConvertFrom-Json $Area = $Weather.nearest_area.areaName.value $Region = $Weather.nearest_area.region.value