I'm new to the world of Rainmeter skin making and I was hoping someone could point me in the right direction on making the following.
I'd like to make a rainmeter skin that reads subscriber/follower/watcher/etc counts from websites and shows them right on your desktop.
I imagine it's not too complex. Get it to visit the website, find the relevant number, then write it back in the appropriate spot for each count. But I don't know any of the language to actually make it.
It is currently March 29th, 2024, 3:33 pm
Subscriber Count Help
-
- Posts: 10
- Joined: August 13th, 2017, 6:32 am
Subscriber Count Help
Last edited by VRArt1 on August 14th, 2017, 11:28 am, edited 1 time in total.
-
- Posts: 826
- Joined: November 20th, 2012, 11:58 pm
Re: Subscriber Count Help
Read https://docs.rainmeter.net/manual-beta/plugins/webparser/ and post a url for testing.
-
- Posts: 10
- Joined: August 13th, 2017, 6:32 am
Re: Subscriber Count Help
https://twitter.com/ladygagaFreeRaider wrote:Read https://docs.rainmeter.net/manual-beta/plugins/webparser/ and post a url for testing.
-
- Posts: 826
- Joined: November 20th, 2012, 11:58 pm
Re: Subscriber Count Help
A sample codeVRArt1 wrote:https://twitter.com/ladygaga
Code: Select all
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
BackgroundMode=2
SolidColor=0,0,0,255
[Metadata]
Name=
Author=FreeRaider
Information=A testing code
Version=
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[MeasureParent]
Measure=Plugin
Plugin=WebParser
URL=https://twitter.com/ladygaga
UpdateRate=600
RegExp=(?siU)<title>.*\((.*)\).*</title>.*<span class="ProfileNav-label" aria-hidden="true">(.*)</span>.*<span class="ProfileNav-value" data-count.*>(.*)\s+.*</.*<span class="ProfileNav-label" aria-hidden="true">(.*)</span>.*<span class="ProfileNav-value" data-count=(.*)\s+.*">(.*)</span>.*<span class="ProfileNav-label" aria-hidden="true">(.*)</span>.*<span class="ProfileNav-value" data-count=(.*)\s+.*">(.*)</span>.*<span class="ProfileNav-label" aria-hidden="true">(.*)</span>.*<span class="ProfileNav-value" data-count=.*">(.*)</span>
FinishAction=[!EnableMeasureGroup Measures][!UpdateMeasureGroup Measures]
[MeasureName]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=1
Disabled=1
Group=Measures
[MeasureTweetTitle]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=2
Disabled=1
Group=Measures
[MeasureTweetNumber]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=3
Disabled=1
Group=Measures
[MeasureFollowingTitle]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=4
Disabled=1
Group=Measures
[MeasureFollowingNumber]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=5
Disabled=1
Group=Measures
[MeasureFollowingNumberCompact]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=6
Disabled=1
Group=Measures
[MeasureFollowerTitle]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=7
Disabled=1
Group=Measures
[MeasureFollowerNumber]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=8
Disabled=1
Group=Measures
[MeasureFollowerNumberCompact]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=9
Disabled=1
Group=Measures
[MeasureLikeTitle]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=10
Disabled=1
Group=Measures
[MeasureLikeNumber]
Measure=Plugin
Plugin=WebParser
URL=[MeasureParent]
StringIndex=11
Disabled=1
Group=Measures
[MeterName]
Meter=String
MeasureName=MeasureName
X=0
Y=0
FontSize=14
FontColor=222,255,227,255
StringStyle=Bold
AntiAlias=1
[MeterTweet]
Meter=String
MeasureName=MeasureTweetTitle
MeasureName2=MeasureTweetNumber
X=0
Y=5R
FontSize=14
FontColor=222,255,227,255
StringStyle=Bold
Text="%1 %2"
AntiAlias=1
[MeterFollowing]
Meter=String
MeasureName=MeasureFollowingTitle
MeasureName2=MeasureFollowingNumber
MeasureName3=MeasureFollowingNumberCompact
X=0
Y=5R
FontSize=14
FontColor=222,255,227,255
StringStyle=Bold
Text="%1 %3 (%2)"
AntiAlias=1
[MeterFollower]
Meter=String
MeasureName=MeasureFollowerTitle
MeasureName2=MeasureFollowerNumber
MeasureName3=MeasureFollowerNumberCompact
X=0
Y=5R
FontSize=14
FontColor=222,255,227,255
StringStyle=Bold
Text="%1 %3 (%2)"
AntiAlias=1
[MeterLike]
Meter=String
MeasureName=MeasureLikeTitle
MeasureName2=MeasureLikeNumber
X=0
Y=5R
FontSize=14
FontColor=222,255,227,255
StringStyle=Bold
Text="%1 %2"
AntiAlias=1
-
- Posts: 10
- Joined: August 13th, 2017, 6:32 am
Re: Subscriber Count Help
Thank you, I'll study this and see if I can make the versions for the other sites on my own.FreeRaider wrote:A sample code
Code: Select all
[Rainmeter] Update=1000 AccurateText=1 DynamicWindowSize=1 BackgroundMode=2 SolidColor=0,0,0,255 [Metadata] Name= Author=FreeRaider Information=A testing code Version= License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0 [MeasureParent] Measure=Plugin Plugin=WebParser URL=https://twitter.com/ladygaga UpdateRate=600 RegExp=(?siU)<title>.*\((.*)\).*</title>.*<span class="ProfileNav-label" aria-hidden="true">(.*)</span>.*<span class="ProfileNav-value" data-count.*>(.*)\s+.*</.*<span class="ProfileNav-label" aria-hidden="true">(.*)</span>.*<span class="ProfileNav-value" data-count=(.*)\s+.*">(.*)</span>.*<span class="ProfileNav-label" aria-hidden="true">(.*)</span>.*<span class="ProfileNav-value" data-count=(.*)\s+.*">(.*)</span>.*<span class="ProfileNav-label" aria-hidden="true">(.*)</span>.*<span class="ProfileNav-value" data-count=.*">(.*)</span> FinishAction=[!EnableMeasureGroup Measures][!UpdateMeasureGroup Measures] [MeasureName] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=1 Disabled=1 Group=Measures [MeasureTweetTitle] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=2 Disabled=1 Group=Measures [MeasureTweetNumber] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=3 Disabled=1 Group=Measures [MeasureFollowingTitle] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=4 Disabled=1 Group=Measures [MeasureFollowingNumber] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=5 Disabled=1 Group=Measures [MeasureFollowingNumberCompact] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=6 Disabled=1 Group=Measures [MeasureFollowerTitle] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=7 Disabled=1 Group=Measures [MeasureFollowerNumber] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=8 Disabled=1 Group=Measures [MeasureFollowerNumberCompact] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=9 Disabled=1 Group=Measures [MeasureLikeTitle] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=10 Disabled=1 Group=Measures [MeasureLikeNumber] Measure=Plugin Plugin=WebParser URL=[MeasureParent] StringIndex=11 Disabled=1 Group=Measures [MeterName] Meter=String MeasureName=MeasureName X=0 Y=0 FontSize=14 FontColor=222,255,227,255 StringStyle=Bold AntiAlias=1 [MeterTweet] Meter=String MeasureName=MeasureTweetTitle MeasureName2=MeasureTweetNumber X=0 Y=5R FontSize=14 FontColor=222,255,227,255 StringStyle=Bold Text="%1 %2" AntiAlias=1 [MeterFollowing] Meter=String MeasureName=MeasureFollowingTitle MeasureName2=MeasureFollowingNumber MeasureName3=MeasureFollowingNumberCompact X=0 Y=5R FontSize=14 FontColor=222,255,227,255 StringStyle=Bold Text="%1 %3 (%2)" AntiAlias=1 [MeterFollower] Meter=String MeasureName=MeasureFollowerTitle MeasureName2=MeasureFollowerNumber MeasureName3=MeasureFollowerNumberCompact X=0 Y=5R FontSize=14 FontColor=222,255,227,255 StringStyle=Bold Text="%1 %3 (%2)" AntiAlias=1 [MeterLike] Meter=String MeasureName=MeasureLikeTitle MeasureName2=MeasureLikeNumber X=0 Y=5R FontSize=14 FontColor=222,255,227,255 StringStyle=Bold Text="%1 %2" AntiAlias=1
-
- Posts: 826
- Joined: November 20th, 2012, 11:58 pm
Re: Subscriber Count Help
Glad to help.
I think that code is fine for other users of twitter.
Surely, for other sites, you will need to change the code, especially the RegExp option.
I think that code is fine for other users of twitter.
Surely, for other sites, you will need to change the code, especially the RegExp option.