How to display data scraped from a web page?
#1
Posted 18 May 2012 - 11:23 AM
I have written a script which gets the wind speed and direction from a web page once every minute (or 30 seconds). I then want to display it in a window which displays all the previous readings and updates accordingly.
This should be easy I'm sure. But I've tried a few different methods of which none are satisfactory:
1) Writing the data into an untitled - Notepad window. This works fine as long as I'm not using the pc for anything else. In other words, if I am working in another application and typing away, as the script switches to the notepad application, the two get mixed.
2) Using msgBox commands every minute which time out after 50 seconds and are then replaced by a new updated one. But eventually, this becomes too big for the screen.
3) Using SplashText - but this is a fixed size window with no scroll and fills up after less than 20 readings.
4) I've looked at (but not tried) using an 'edit' box in a GUI control but I don't want the box being typed into.
The data that has been collected is just stored in one string. So easy to send to whatever the right display method might be. It just needs to come up on the screen in a scrollable window that can't be edited.
Below is an example of the data scraped:
(Wind Speed is in km/h)
1 - 21:31:54 CalmCalmHigh Gu
2 - 22:08:56 CalmCalmHigh Gu
3 - 22:09:29 SSW 8
4 - 22:10:02 SSW 8
5 - 22:10:34 SSW 5
6 - 22:11:08 SSW 5
7 - 22:11:41 SSW 5
8 - 22:12:14 SSW 5
9 - 22:12:46 SW 11
10 - 22:13:19 SW 11
11 - 22:13:52 WSW 8
12 - 22:14:25 WSW 11
13 - 22:14:58 WSW 11
14 - 22:15:30 WSW 8
15 - 22:16:03 WSW 8
16 - 22:16:36 WSW 8
17 - 22:17:09 WSW 8
There is probably an incredibly simple solution and I'd be very grateful for some pointers in the right direction.
Keith
#2
Posted 18 May 2012 - 11:25 AM
One of them is this one.
You'll find more if you search for "weather wind" etc.
UDFs:
Active Directory (2012-10-12 - Version 1.3.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2012-10-07 - Version 0.9.0.0 released) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2013-01-21 - Version 0.3.1.1 released) - Download - General Help & Support - Example Scripts
WordEX (2012-12-29 - Version 1.3 released) - Download
ExcelEX (2013-05-11 - Alpha 4 released) - Download
#3
Posted 18 May 2012 - 09:13 PM
s!mpL3 LAN MessengerCurrent version 2.9.7.7 [15/02/2013]Download HeresimpL3
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





