Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
20
Task/Web-scraping/Seed7/web-scraping.seed7
Normal file
20
Task/Web-scraping/Seed7/web-scraping.seed7
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
$ include "seed7_05.s7i";
|
||||
include "gethttp.s7i";
|
||||
|
||||
const proc: main is func
|
||||
local
|
||||
var string: pageWithTime is "";
|
||||
var integer: posOfUTC is 0;
|
||||
var integer: posOfBR is 0;
|
||||
var string: timeStri is "";
|
||||
begin
|
||||
pageWithTime := getHttp("tycho.usno.navy.mil/cgi-bin/timer.pl");
|
||||
posOfUTC := pos(pageWithTime, "UTC");
|
||||
if posOfUTC <> 0 then
|
||||
posOfBR := rpos(pageWithTime, "<BR>", posOfUTC);
|
||||
if posOfBR <> 0 then
|
||||
timeStri := pageWithTime[posOfBR + 4 .. pred(posOfUTC)];
|
||||
writeln(timeStri);
|
||||
end if;
|
||||
end if;
|
||||
end func;
|
||||
Loading…
Add table
Add a link
Reference in a new issue