You have StringIndex=7 on one of the child measures, but there is no 7th capture anywhere in your "get" stuff. If you look, there is one capture in each "get" type, and there are 6 total in the RegExp. That works out to 6 for me, so if you look in the log, (About from the context menu) you will find an error "WebParser.dll: [MeasureImageDownload2] Not enough substrings!"
You need to revisit the StringIndex= settings on your child measures, and make sure they match what is being retrieved.
It is currently May 3rd, 2024, 7:23 pm
Webparse help
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
-
- Posts: 54
- Joined: October 8th, 2011, 11:49 pm
Re: Webparse help
Oh, i was in the middle of changing things when i posted that code. Thats why it was still there. Ive gone and sorted it out into a proper layout now. But its still doing odd things, Like i need to have a #GET# before the first image #GET# else it wont load the image.
Also back to the last question:
"The Pictures are wrong because im using them in a later #GET#, Is there anyway to counter act this without having to use multiple "RegExp" Measures?"
its also showing something odd there, Its reading the first name (which is 2 away from the real one) then it skips to the 4th one away, when it should say the third one away.
Code: Select all
[Rainmeter]
Update=1000
Author=Kennyist
BackgroundMode=1
______________________
[Metadata]
Description=Steam Gifts Menu
Information=http://www.kennyiststudios.co.uk/
Version=1.0
________________________
[Variables]
@include1=#SKINSPATH#\SteamGifts\Resources\Styles.txt
@include2=#SKINSPATH#\SteamGifts\Resources\Variables.inc
GET=.*<div class="right">.*<a href="(.*)">.*
GET2=.*<img src="(.*)" width="184" /></a></div>.*
GET3=.*<div class="created_by">.*<a href="/user/(.*)">.*
________________________
[MeasureSite]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=60
Url=http://www.steamgifts.com/
RegExp="(?siU)#GET##GET2##GET2##GET3##GET3#"
[1-I]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://www.steamgifts.com/[MeasureSite]
StringIndex=2
Download=1
[1-N]
Measure=Plugin
Plugin=WebParser
URL=[MeasureSite]
StringIndex=4
[2-I]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://www.steamgifts.com/[MeasureSite]
StringIndex=3
Download=1
[2-N]
Measure=Plugin
Plugin=WebParser
URL=[MeasureSite]
StringIndex=5
___________________________________________
[background]
Meter=Image
Solidcolor=0,0,0,120
h=400
w=300
[show-1-I]
Meter=IMAGE
MeasureName=1-I
x=0
y=0
H=124
W=262
[Show-1-N]
Meter=String
MeasureName=1-N
x=r
y=130r
StringAlign=Left
FontColor=#Entries#
StringStyle=BOLD
FontSize=10
[show-2-I]
Meter=IMAGE
MeasureName=2-I
x=0
y=20r
H=124
W=262
[Show-2-N]
Meter=String
MeasureName=2-N
x=r
y=130r
StringAlign=Left
FontColor=#Entries#
StringStyle=BOLD
FontSize=10
Also back to the last question:
"The Pictures are wrong because im using them in a later #GET#, Is there anyway to counter act this without having to use multiple "RegExp" Measures?"
its also showing something odd there, Its reading the first name (which is 2 away from the real one) then it skips to the 4th one away, when it should say the third one away.
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Webparse help
I would attack the entire skin a bit differently. Something like this:
Use my skin so you can see what it does, then tear it apart until you understand how it works. I am glad to answer any questions about why / what / how it works.
Code: Select all
[Rainmeter]
Update=1000
Author=Kennyist
BackgroundMode=1
[Metadata]
Description=Steam Gifts Menu
Information=http://www.kennyiststudios.co.uk/
Version=1.0
[Variables]
@include1=#SKINSPATH#\SteamGifts\Resources\Styles.txt
@include2=#SKINSPATH#\SteamGifts\Resources\Variables.inc
GET=<div class="center"><a href="/user/(.*)".*/images/avatars/(.*)\).*<div class="right">.*<a href="(.*)".*<img src="(.*)".*
[MeasureSite]
Measure=Plugin
Plugin=Plugins\WebParser.dll
UpdateRate=300
Url=http://www.steamgifts.com/
RegExp="(?siU)#GET##GET##GET##GET##GET##GET#"
[MeasureUser1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
StringIndex=1
[MeasureAvatar1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://media.steampowered.com/steamcommunity/public/images/avatars/[MeasureSite]
StringIndex=2
Download=1
[MeasureLink1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://www.steamgifts.com[MeasureSite]
StringIndex=3
[MeasureImage1]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://www.steamgifts.com[MeasureSite]
StringIndex=4
Download=1
[MeasureUser2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=[MeasureSite]
StringIndex=5
[MeasureAvatar2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://media.steampowered.com/steamcommunity/public/images/avatars/[MeasureSite]
StringIndex=6
Download=1
[MeasureLink2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://www.steamgifts.com[MeasureSite]
StringIndex=7
[MeasureImage2]
Measure=Plugin
Plugin=Plugins\WebParser.dll
Url=http://www.steamgifts.com[MeasureSite]
StringIndex=8
Download=1
;ADD MORE MEASURES HERE TO GET AS MANY AS YOU WANT... BE SURE TO USE THE RIGHT STRINGINDEX NUMBERS. THERE ARE 24 STRINGINDEXES IN TOTAL WITH THE 6 #GET#'S I USED.
[MeterBackground]
Meter=Image
Solidcolor=0,0,0,120
H=401
W=262
[MeterImage1]
Meter=Image
MeasureName=MeasureImage1
X=0
Y=0
H=124
W=262
[MeterAvatar1]
Meter=Image
MeasureName=MeasureAvatar1
X=0
Y=2R
H=64
PreserveAspectRatio=1
[MeterUser1]
Meter=String
MeasureName=MeasureUser1
X=70
Y=-40R
FontColor=255,234,166,255
SolidColor=0,0,0,1
FontSize=10
StringAlign=Left
StringStyle=Bold
AntiAlias=1
LeftMouseUpAction=!Execute ["[MeasureLink1]"]
DynamicVariables=1
[MeterImage2]
Meter=Image
MeasureName=MeasureImage2
X=0
Y=45R
H=124
W=262
[MeterAvatar2]
Meter=Image
MeasureName=MeasureAvatar2
X=0
Y=2R
H=64
PreserveAspectRatio=1
[MeterUser2]
Meter=String
MeasureName=MeasureUser2
X=70
Y=-40R
FontColor=255,234,166,255
SolidColor=0,0,0,1
FontSize=10
StringAlign=Left
StringStyle=Bold
AntiAlias=1
LeftMouseUpAction=!Execute ["[MeasureLink2]"]
DynamicVariables=1
;ADD MORE METERS HERE TO DISPLAY AS MANY AS YOU WANT. BE SURE TO CHANGE THE BACKGROUND SIZE TO MATCH.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 54
- Joined: October 8th, 2011, 11:49 pm
Re: Webparse help
Thanks alot. I didnt think it would work that way so easily. I get how it works and added a few test things to it. Thanks again for all the help.
-
- Posts: 54
- Joined: October 8th, 2011, 11:49 pm
Re: Webparse help
NOT NEEDED
-
- Posts: 54
- Joined: October 8th, 2011, 11:49 pm
Re: Webparse help
Hmm, I've now hit another problem. The site has just been updated with a new feature, This feature interferes with what ive got at the moment as it adds this :
So instead of getting time left and entries from the one thats now below it, it gets that. I cant use another #get# to get around it as it only appears every so often. So im trying to skip it but that has run into matching errors. Ive tried:
With the "*<div class="title">.*Contributor:</span>.*<div class="clear_both"></div>.*" Trying to skip that section. ( the <span class="new"> is also not there all the time )
What is the problem, I'm still trying to sort this out but still getting errors. Others i've tried:
Code: Select all
<div class="title"><span class="new">Contributor:</span> <a href="/giveaway/Tcxqs/darksiders-ii">Darksiders II</a> <span style="color:#c9cdcf;">(50P)</span></div>
<div class="description">
<div class="time_remaining">
Open for another <strong>4 days </strong><span style="margin-left:5px; color:#b5b8be;">(Created <strong>1 hour </strong> ago)</span> </div>
<div class="clear_both"></div>
Code: Select all
RegExp="(?siU)<div class="left">.*<a href="(.*)" class="game_img" .*style="background-image: url\((.*)\);"><div class="featured_img"></div></a>.*<div class="title">.*Contributor:</span>.*<div class="clear_both"></div>.*<div class="rounded entries">(.*)</div>.*time_remaining.*<strong>(.*) </strong>.*"
What is the problem, I'm still trying to sort this out but still getting errors. Others i've tried:
Code: Select all
RegExp="(?siU)<div class="left">.*<a href="(.*)" class="game_img" .*style="background-image: url\((.*)\);"><div class="featured_img"></div></a>.*<div class="pagination">.*<div class="rounded entries">(.*)</div>.*time_remaining.*<strong>(.*) </strong>.*"