RosettaCodeData/Task/Web-scraping/PowerShell/web-scraping-1.ps1

5 lines
165 B
PowerShell
Raw Permalink Normal View History

2026-04-30 12:34:36 -04:00
$wc = New-Object Net.WebClient
$html = $wc.DownloadString('http://tycho.usno.navy.mil/cgi-bin/timer.pl')
$html -match ', (.*) UTC' | Out-Null
Write-Host $Matches[1]