It is currently May 3rd, 2024, 4:21 pm

Suggestion on WebParser

Share and get help with Plugins and Addons
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Suggestion on WebParser

Post by MerlinTheRed »

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!
User avatar
thatsIch
Posts: 446
Joined: August 7th, 2012, 9:18 pm

Re: Suggestion on WebParser

Post by thatsIch »

MerlinTheRed wrote:Did you try using Download=1 and then use another WebParser to parse the downloaded file?
I'm currently using
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()
works like a charm, but its sad you cannot go over the rainmeter course. Maybe you can add it to the webparser page. I guess some other authors might be interessted in this solution, cause de facto the Webparser cannot handle big regexp/inputfiles/entries

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 =)