Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Web-scraping/Gambas/web-scraping.gambas
Normal file
17
Task/Web-scraping/Gambas/web-scraping.gambas
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Public Sub Main()
|
||||
Dim sWeb, sTemp, sOutput As String 'Variables
|
||||
|
||||
Shell "wget -O /tmp/web http://tycho.usno.navy.mil/cgi-bin/timer.pl" Wait 'Use 'wget' to save the web file in /tmp/
|
||||
|
||||
sWeb = File.Load("/tmp/web") 'Open file and store in sWeb
|
||||
|
||||
For Each sTemp In Split(sWeb, gb.NewLine) 'Split the file by NewLines..
|
||||
If InStr(sTemp, "UTC") Then 'If the line contains "UTC" then..
|
||||
sOutPut = sTemp 'Extract the line into sOutput
|
||||
Break 'Get out of here
|
||||
End If
|
||||
Next
|
||||
|
||||
Print Mid(sOutput, 5) 'Print the result without the '<BR>' tag
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue