Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/Web-scraping/Microsoft-Small-Basic/web-scraping.basic
Normal file
14
Task/Web-scraping/Microsoft-Small-Basic/web-scraping.basic
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
'Entered by AykayayCiti -- Earl L. Montgomery
|
||||
url_name = "http://tycho.usno.navy.mil/cgi-bin/timer.pl"
|
||||
url_data = Network.GetWebPageContents(url_name)
|
||||
find = "UTC"
|
||||
' the length from the UTC to the time is -18 so we need
|
||||
' to subtract from the UTC position
|
||||
pos = Text.GetIndexOf(url_data,find)-18
|
||||
result = Text.GetSubText(url_data,pos,(18+3)) 'plus 3 to add the UTC
|
||||
TextWindow.WriteLine(result)
|
||||
|
||||
'you can eleminate a line of code by putting the
|
||||
' GetIndexOf insde the GetSubText
|
||||
'result2 = Text.GetSubText(url_data,Text.GetIndexOf(url_data,find)-18,(18+3))
|
||||
'TextWindow.WriteLine(result2)
|
||||
Loading…
Add table
Add a link
Reference in a new issue