Web scraping

var ua = frequire('LWP::Simple')
var url = 'http://tycho.usno.navy.mil/cgi-bin/timer.pl'
var match = /<BR>(.+? UTC)/.match(ua.get(url))
say match[0] if match

Output:

Oct. 27, 00:20:50 UTC

Last updated