It is currently April 19th, 2024, 7:40 pm

HTML Plugin/Measure

Share and get help with Plugins and Addons
User avatar
UnstoppableDave
Posts: 30
Joined: May 22nd, 2010, 6:51 pm

HTML Plugin/Measure

Post by UnstoppableDave »

Hi, I just picked up rainmeter a few days ago and dove into my first project yesterday, so sorry for any noobness. :p
I am trying to make a skin for viewing the status of BF2 servers, but the only feed for that doesn't have all the info I need. However, there is a webpage that has exactly what i want. Is there a plugin or would it be hard for me to make one to just grab raw source text (like HTML) from a target URL to run it through the RegExp rules and display in a meter?

Thanks,
Dave
Image
dragonmage
Developer
Posts: 1270
Joined: April 3rd, 2009, 4:31 am
Location: NC, US

Re: HTML Plugin/Measure

Post by dragonmage »

As long the page doesn't require a login to view it you can use WebParser just like we do with rss feeds.
User avatar
Alex2539
Rainmeter Sage
Posts: 642
Joined: July 19th, 2009, 5:59 am
Location: Montreal, QC, Canada

Re: HTML Plugin/Measure

Post by Alex2539 »

WebParser will let you grab any of the text that you need, but it won't parse the HTML for you. If the site says "<p>Some <br/>Text</p>", that's exactly what you're going to get. Fortunately, WebParser lets you use Regular Expressions to get only the exact data you need.

More info: http://rainmeter.net/cms/Tips-WebParserPrimer
ImageImageImageImage