It is currently March 28th, 2024, 9:46 pm

Webparsing problem need help.

Share and get help with Plugins and Addons
ShanSystems
Posts: 1
Joined: August 21st, 2017, 10:24 pm

Webparsing problem need help.

Post by ShanSystems »

I'm trying to retrieve an information from the site https://en.wikipedia.org/wiki/Dota_2 and view some information using meters and such. I can't seem to make it to work please anyone can help or enlighten me please as to what is the problem.. the webparser plugin don't return any value. But when I use the RainRegExp program the RegExp string returns the value that I want.

Here is what I am working on.

Code: Select all

[mSite]
Measure=Plugin
Plugin=WebParser
URL=https://en.wikipedia.org/wiki/Dota_2
RegExp=(?siU)<tr.*>Developer.*</td>.*<td.*>(.*)</td>.*<td.*>(.*)</td>
UpdateRate=600

[mDeveloper]
Measure=Plugin
Plugin=WebParser
URL=[mSite]
StringIndex=1

[mDesigner]
Measure=Plugin
Plugin=WebParser
URL=[mSite]
StringIndex=2

[Details1]
DynamicVariables=1
Meter=String
StringAlign=Left
AntiAlias=1
FontSize=7
x=125
y=145
W=250
Text=Developer(s)

[Details2]
Meter=String
MeasureName=mDeveloper
StringAlign=Left
FontSize=7
AntiAlias=1
x=r
y=15r
H=25
w=130
ClipString=1
StringStyle=Normal
FontColor=FFFFFF
DynamicVariables=1

[Details3]
DynamicVariables=1
Meter=String
StringAlign=Left
AntiAlias=1
FontSize=7
x=r
y=30r
W=250
Text=Designer(s)

[Details4]
DynamicVariables=1
Meter=String
MeasureName=mDesigner
StringAlign=Left
FontSize=7
AntiAlias=1
x=r
y=15r
H=25
w=130
ClipString=1
StringStyle=Normal
FontColor=FFFFFF
Last edited by Brian on August 22nd, 2017, 3:18 am, edited 1 time in total.
Reason: Please use [code] tags.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Webparsing problem need help.

Post by balala »

ShanSystems wrote:I can't seem to make it to work please anyone can help or enlighten me please as to what is the problem.. the webparser plugin don't return any value. But when I use the RainRegExp program the RegExp string returns the value that I want.
The posted code works, right now giving the followings: Valve Corporation ([mDeveloper] measure), respectively Erik Johnson ([mDesigner] measure).
If you've tried your code more times, refreshing repeatedly the skin, probably the WebParser plugin "hanged" and stopped working. In such cases this can happen many times (see this). A complete restart of Rainmeter can help. So, restart it and try your code again. Does it work now?