It is currently September 21st, 2019, 4:09 pm

Using RegExp

General topics related to Rainmeter.
Krishneel Chand
Posts: 14
Joined: March 30th, 2018, 12:33 am

Using RegExp

Krishneel Chand » April 13th, 2019, 4:06 am

Hi, I'm using RegExp in rainmeter to get info from a website but since the code on the website sometimes changes it leads to lots of errors. To solve this I have about 10 RegExp measures that get each info from the website so that if one thing is changed it doesn't lead to an error for everything.

So I wanted to ask if this is the ideal way of doing this? will my IP get banned for too many requests? and if there is a way to download the webpage once and look for info from it separately instead of each RegExp downloading it again.

Thanks :)
User avatar
Posts: 786
Joined: November 20th, 2012, 11:58 pm

Re: Using RegExp

FreeRaider » April 13th, 2019, 8:24 am

Hard to answer about a possible IP ban, but another way to download the webpage is using the "mix" of webparser and LUA (mix a little bit difficult).

Practically, you would use a RegExp option to download the whole webpage and to use a lua script to capture the information you want.

For example see this skin by jsmorley