(Webparser) Steam Name and Badge Number..

Help with creating, editing & fixing problems with skins

(Webparser) Steam Name and Badge Number..

August 12th, 2017, 5:41 am
Oyojo
   [10 posts]

Hey guys.. i'm back here again. but not with a enormous project..

I just wanna know how to make the webparser plugin parse my steam name and the number of badges i have..and also the favourite badge icon..
I want to use webparser because it would update my name and badges automatically everytime something changes so i thought that would be cool..

If you guys need it here's my steam link http://steamcommunity.com/id/SnopDogle
Badges: http://steamcommunity.com/id/SnopDogle/badges

Here's the html code of the page(name and badge amount only)

Code: Select all

                          [Name]
1) <title>Steam Community :: 0beSeG0bLIn</title>




2)           g_rgProfileData = {"url":"http:\/\/steamcommunity.com\/id\/SnopDogle\/","steamid":"76561198274691292","personaname":"0beSeG0bLIn","summary":"No food here...."};
      $J( function() {
         window.Responsive_ReparentItemsInResponsiveMode && Responsive_ReparentItemsInResponsiveMode( '.responsive_groupfriends_element', $J('#responsive_groupfriends_element_ctn') );
               });




3)<span class="actual_persona_name">0beSeG0bLIn</span>



                             [Badge ammount]   
1)<span class="count_link_label">Badges</span>       


2)<span class="profile_count_link_total">
                                                   4                                             </span>                           
 
 
 
                                [Favourite Badge]

1)<div class="favorite_badge_icon" data-community-tooltip="Community Ambassador(badge)">
                                    <a class="whiteLink" href="http://steamcommunity.com/id/SnopDogle/badges/2">
                                       <img src="http://steamcommunity-a.akamaihd.net/public/images/badges/01_community/community03_54.png" class="badge_icon small">
                                    </a>
                                 </div>

               

Current Name: 0BeSeG0BlIn
Current badge amount: 4
Favourite Badge: Community Ambassador


that's the code there... the help would be greatly appreciated :D Thanks..
User avatar

Re: (Webparser) Steam Name and Badge Number..

August 12th, 2017, 9:46 am
FreeRaider
   [656 posts]

Read this https://docs.rainmeter.net/manual-beta/ ... webparser/ and try this simple code:

Code: Select all

[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,255

[Metadata]
Name=
Author=
Information=
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0


[MeasureParent]
Measure=Plugin
Plugin=WebParser
URL=http://steamcommunity.com/id/SnopDogle
UpdateRate=600
RegExp=(?siU).*<title>.*\:\s+(.*)</title>.*<span class="profile_count_link_total">.*(\d+).*</span>.*<img src="(.*)".*class=".*small">
FinishAction=[!EnableMeasureGroup Measures][!UpdateMeasureGroup Measures]

[MeasureName]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=1
Disabled=1
Group=Measures

[MeasureBadgeNumber]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=2
Disabled=1
Group=Measures

[MeasureBadgeIcon]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=3
DownLoad=1
Disabled=1
Group=Measures

[MeterName]
Meter=String
MeasureName=MeasureName
FontSize=14
FontColor=222,255,227,255
StringStyle=Bold
AntiAlias=1

[MeterBadgeNumber]
Meter=String
MeasureName=MeasureBadgeNumber
Y=2R
FontSize=11
FontColor=255,255,255,255
StringStyle=Bold
AntiAlias=1
DynamicVariables=1

[MeterBadgeIcon]
Meter=Image
MeasureName=MeasureBadgeIcon
Y=2R

Return to “Help: Rainmeter Skins”



Who is online

Users browsing this forum: No registered users and 2 guests