Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Web-scraping/Unicon/web-scraping.unicon
Normal file
7
Task/Web-scraping/Unicon/web-scraping.unicon
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
procedure main()
|
||||
m := open(url := "http://tycho.usno.navy.mil/cgi-bin/timer.pl","m") | stop("Unable to open ",url)
|
||||
every (p := "") ||:= |read(m) # read the page into a single string
|
||||
close(m)
|
||||
|
||||
map(p) ? ( tab(find("<br>")), ="<br>", write("UTC time=",p[&pos:find(" utc")])) # scrape and show
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue