It is currently March 28th, 2024, 2:31 pm

webphaser

Get help with creating, editing & fixing problems with skins
Post Reply
User avatar
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

webphaser

Post by FreeRaider »

From a private message:
Nickcz wrote:Hiya, you helped me previously and I was just wondering if would be kind enough help me once more :)


The below is my current code and I would like to grab the steam level & exp from this page
http://steamcommunity.com/id/NiZEDGE/badges

But for some reason it doesn't seem to want to grab the info (or I'm just bad)

Code: Select all

[Rainmeter]
Author=NiZEDGE
Update=10000
AccurateText=1
DynamicWindowSize=1

[Metadata]
Name=Steam Level
Description=Displays Steam Level

[Variables]
Level=
Exp=

[MeasureSite]
Measure=Plugin
Plugin=WebParser
URL=http://steamcommunity.com/id/NiZEDGE/badges
RegExp=(?siU).*<!-- List Items -->.*<span class="friendPlayerLevelNum">(.*)</span>.*<span class="profile_xp_block_xp">(.*)</span>.*
UpdateRate=-1

[MeasureLevel]
Measure=Plugin
Plugin=WebParser
URL=[MeasureSite]
StringIndex=1

[MeasureExp]
Measure=Plugin
Plugin=WebParser
URL=[MeasureSite]
StringIndex=2

[Background]
Meter=Shape
Shape=Rectangle 0,0,66,24 | Fill Color 206,206,206,255 | StrokeWidth 0 | Stroke Color 0,0,0,170
LeftMouseDownAction=Play "C:\Users\Nick\Documents\Rainmeter\Skins\Click.wav"
LeftMouseUpAction=!Execute ["steam://openurl/http://steamcommunity.com/id/NiZEDGE/badges"]

[Background2]
Meter=Shape
Shape=Rectangle 0,0,66,1 | Fill Color 166,166,166,255 | StrokeWidth 0 | Stroke Color 0,0,0,170

[Username]
Meter=String
MeterStyle=Font
FontFace="Motiva Sans", Sans-serif
;Arial
Text=Level
FontColor=43,43,43,255
FontSize=12
FontWeight=200
;StringEffect=Shadow
ClipString=1
AntiAlias=1
X=0
Y=0

[MeterEmptyCircle]
Meter=Roundline
X=33
Y=-8
W=40
H=40
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineStart=10
LineLength=9
LineColor=43,43,43,255
;LineColor=243,149,156,255
Solid=1
AntiAlias=1

[Level]
Meter=String
;MeterStyle=Font
FontFace="Motiva Sans", Sans-serif
MeasureName=MeasureID
;Text=#Level#
FontColor=43,43,43,255
FontSize=9
FontWeight=200
;StringEffect=Shadow
ClipString=1
AntiAlias=1
X=44
Y=3
Any help would be greatly appreciated :thumbup:
First: post your questions on forum so other users can use the answers.

Second: try this code:

Code: Select all

RegExp=(?siU).*<span class="friendPlayerLevelNum">(.*)</span>.*<span class="profile_xp_block_xp">(.*)</span>.*
It returns
01=> 81
02=> XP 37,116
niz.png
Post Reply