! Copyright (c) 2012 Anonymous
-! See http://factorcode.org/license.txt for BSD license.
+! See https://factorcode.org/license.txt for BSD license.
USING: http.client io kernel math sequences ;
IN: rosetta-code.web-scraping
-! http://rosettacode.org/wiki/Web_scraping
+! https://rosettacode.org/wiki/Web_scraping
! Create a program that downloads the time from this URL:
-! http://tycho.usno.navy.mil/cgi-bin/timer.pl and then prints the
+! https://tycho.usno.navy.mil/cgi-bin/timer.pl and then prints the
! current UTC time by extracting just the UTC time from the web
! page's HTML.
! and popular such as CPAN for Perl or Boost for C++.
: web-scraping-main ( -- )
- "http://tycho.usno.navy.mil/cgi-bin/timer.pl" http-get nip
+ "https://tycho.usno.navy.mil/cgi-bin/timer.pl" http-get nip
[ "UTC" subseq-index [ 9 - ] [ 1 - ] bi ] keep subseq print ;
MAIN: web-scraping-main