Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Web-scraping/8th/web-scraping.8th
Normal file
14
Task/Web-scraping/8th/web-scraping.8th
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
\ Web-scrape sample: get UTC time from the US Naval Observatory:
|
||||
: read-url \ -- s
|
||||
"http://tycho.usno.navy.mil/cgi-bin/timer.pl" net:get
|
||||
not if "Could not connect" throw then
|
||||
>s ;
|
||||
|
||||
: get-time
|
||||
read-url
|
||||
/<BR>.*?(\d{2}:\d{2}:\d{2})\sUTC/
|
||||
tuck r:match if
|
||||
1 r:@ . cr
|
||||
then ;
|
||||
|
||||
get-time bye
|
||||
Loading…
Add table
Add a link
Reference in a new issue