Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
19
Task/Web-scraping/TXR/web-scraping-1.txr
Normal file
19
Task/Web-scraping/TXR/web-scraping-1.txr
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
@(next @(open-command "wget -c http://tycho.usno.navy.mil/cgi-bin/timer.pl -O - 2> /dev/null"))
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final"//EN>
|
||||
<html>
|
||||
<body>
|
||||
<TITLE>What time is it?</TITLE>
|
||||
<H2> US Naval Observatory Master Clock Time</H2> <H3><PRE>
|
||||
@(collect :vars (MO DD HH MM SS (PM " ") TZ TZNAME))
|
||||
<BR>@MO. @DD, @HH:@MM:@SS @(maybe)@{PM /PM/} @(end)@TZ@/\t+/@TZNAME
|
||||
@ (until)
|
||||
</PRE>@/.*/
|
||||
@(end)
|
||||
</PRE></H3><P><A HREF="http://www.usno.navy.mil"> US Naval Observatory</A>
|
||||
|
||||
</body></html>
|
||||
@(output)
|
||||
@ (repeat)
|
||||
@MO-@DD @HH:@MM:@SS @PM @TZ
|
||||
@ (end)
|
||||
@(end)
|
||||
6
Task/Web-scraping/TXR/web-scraping-2.txr
Normal file
6
Task/Web-scraping/TXR/web-scraping-2.txr
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
@(next @(open-command "wget -c http://tycho.usno.navy.mil/cgi-bin/timer.pl -O - 2> /dev/null"))
|
||||
@(skip)
|
||||
<BR>@time@\ UTC@(skip)
|
||||
@(output)
|
||||
@time
|
||||
@(end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue