It is currently May 3rd, 2024, 9:31 pm

RainRegExp and WebParser plugin

Get help with installing and using Rainmeter.
ColdInIowa
Posts: 4
Joined: March 31st, 2013, 8:38 am

RainRegExp and WebParser plugin

Post by ColdInIowa »

Hi All, I'm having some trouble with creating an RSS Feed. I've gone through the tutorial "How to use the WebParser plugin" but I'm encountering something strange. I want an RSS feed from http://news.yahoo.com/rss/boxing. This is their RSS link. I am using RainRegExp to make sure that my regular expression statements work.

In RainRegExp my RegExpression shows 01=> Boxing News Headlines - Yahoo! News. But when I put that code into my actual skin I get "<title>Boxing News Headlines - Yahoo! News </title>" The code to the left and right of what I want also appears in my skin. I thought that (.*) will only return what is between <title> and </title>. This issue doesn't appear in the RainRegExp program. Thanks in advance for all the help. Below is my code

Code: Select all

[Rainmeter]
Update=1000

[MeterBackground]
Meter=Image
H=500
W=500
X=0
Y=0
SolidColor=0,0,0,150


[MeasureRSSBoxing]
Measure=Plugin
Plugin=Plugins/WebParser.dll
UpdateRate=1800
Url=http://news.yahoo.com/rss/boxing
RegExp=(?siU)<title>(.*)</title>.*

[MeterRSSTitle]
MeasureName=MeasureRSSBoxing
Meter=String
StringIndex=01
FontColor=255,255,255
X=0
Y=0
User avatar
jsmorley
Developer
Posts: 22631
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: RainRegExp and WebParser plugin

Post by jsmorley »

StringIndex is used on a WebParser measure, not a meter.

Code: Select all

[Rainmeter]
Update=1000

[MeterBackground]
Meter=Image
H=500
W=500
X=0
Y=0
SolidColor=0,0,0,150

[MeasureRSSBoxing]
Measure=Plugin
Plugin=Plugins/WebParser.dll
UpdateRate=1800
Url=http://news.yahoo.com/rss/boxing
RegExp=(?siU)<title>(.*)</title>.*
StringIndex=1

[MeterRSSTitle]
MeasureName=MeasureRSSBoxing
Meter=String
FontColor=255,255,255
X=0
Y=0
http://docs.rainmeter.net/manual/plugins/webparser#StringIndex
ColdInIowa
Posts: 4
Joined: March 31st, 2013, 8:38 am

Re: RainRegExp and WebParser plugin

Post by ColdInIowa »

Thank you very much! That fixed the issue!