It is currently May 3rd, 2024, 4:21 pm
Suggestion on WebParser
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: Suggestion on WebParser
Did you try using Download=1 and then use another WebParser to parse the downloaded file?
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 446
- Joined: August 7th, 2012, 9:18 pm
Re: Suggestion on WebParser
I'm currently usingMerlinTheRed wrote:Did you try using Download=1 and then use another WebParser to parse the downloaded file?
Download = 1
and
Code: Select all
-- GET PARSER AND FILEPATH
local webParser = SKIN:GetMeasure('measureRSS')
local downloadedFilePath = webParser:GetStringValue()
-- FILE ACCESS AND FILE DATA
local file = assert(io.open(downloadedFilePath, "r"))
local data = file:read("*all")
file:close()
just for "test" measures:
before I needed to wait 1 minute for a timeout to happen, so the whole processing took very long. Now I get the whole file content in 0.1 seconds. So I guess its about 36.000 times faster =)
Powered by Sublime Text 3 with Rainmeter-Package