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

(Webparser) Steam Name and Badge Number..

Get help with creating, editing & fixing problems with skins
Post Reply
Oyojo
Posts: 10
Joined: July 24th, 2017, 11:01 am

(Webparser) Steam Name and Badge Number..

Post by Oyojo »

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
FreeRaider
Posts: 826
Joined: November 20th, 2012, 11:58 pm

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

Post by FreeRaider »

Read this https://docs.rainmeter.net/manual-beta/plugins/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
Post Reply