Hi I am trying to make my RSS Reader skin display text from a webpage instead of displaying RSS feed.
The webpage is https://sitncrush.winningpokernetwork.eu/
I just want to have this information on my desktop so its always visible
Which functions of web parser would i need for this?
Also is it possible to center a row which contains a key word or in this case username?
I am using the Neon Space RSS Reader
It is currently April 18th, 2024, 7:06 pm
Using Web Parser to make RSS Feed display web text
-
- Posts: 3
- Joined: August 31st, 2020, 8:04 pm
-
- Rainmeter Sage
- Posts: 7124
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: Using Web Parser to make RSS Feed display web text
Didn't check the skin, but just to get an idea, that skin was most likely built to display RSS feeds and not an entire webpage, not to mention that parsing an entire HTML, while possible, is a considerable amount of work (if the webpage doesn't use JavaScript to populate itself, that is, because that would make the job impossible).rainmeteruser01084 wrote: ↑August 31st, 2020, 8:21 pm Hi I am trying to make my RSS Reader skin display text from a webpage instead of displaying RSS feed.
The webpage is https://sitncrush.winningpokernetwork.eu/
I just want to have this information on my desktop so its always visible
Which functions of web parser would i need for this?
Also is it possible to center a row which contains a key word or in this case username?
I am using the Neon Space RSS Reader
So, assuming JavaScript isn't used that way, I believe the best choice would be to start fresh, adding the background of that skin and the nice graphics to the new skin, and then just extract the contents of the needed individual elements in order to display them.
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Using Web Parser to make RSS Feed display web text
Not sure this can be done into a RSS Reader skin (gonna give it a try later just in case), however here is an extremely simple code to get the needed information:rainmeteruser01084 wrote: ↑August 31st, 2020, 8:21 pm Hi I am trying to make my RSS Reader skin display text from a webpage instead of displaying RSS feed.
The webpage is https://sitncrush.winningpokernetwork.eu/
I just want to have this information on my desktop so its always visible
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
[Variables]
Item=(?(?=.*<tr>).*<td style="width: \d*px; padding-left:\d*px">(.*)</td>.*<td style="width: \d*px">(.*)</td>.*<td style="width: \d*px;">(.*)</td>.*<td style="width: \d*px;">(.*)</td>.*<td style="width: \d*px;">(.*)</td>.*<td style="width: \d*px;">(.*)</td>.*</tr>)
[MeasureParent]
Measure=WebParser
URL=https://sitncrush.winningpokernetwork.eu/
RegExp=(?siU)#Item##Item##Item##Item##Item#
UpdateRate=900
[MeasureNum1]
Measure=WebParser
URL=[MeasureParent]
StringIndex=1
[MeasureNickname1]
Measure=WebParser
URL=[MeasureParent]
StringIndex=2
[MeasurePoints1]
Measure=WebParser
URL=[MeasureParent]
StringIndex=3
[MeasureCashPrize1]
Measure=WebParser
URL=[MeasureParent]
StringIndex=4
[MeasureProjected1]
Measure=WebParser
URL=[MeasureParent]
StringIndex=5
[MeasureTourTick1]
Measure=WebParser
URL=[MeasureParent]
StringIndex=6
[MeasureNum2]
Measure=WebParser
URL=[MeasureParent]
StringIndex=7
[MeasureNickname2]
Measure=WebParser
URL=[MeasureParent]
StringIndex=8
[MeasurePoints2]
Measure=WebParser
URL=[MeasureParent]
StringIndex=9
[MeasureCashPrize2]
Measure=WebParser
URL=[MeasureParent]
StringIndex=10
[MeasureProjected2]
Measure=WebParser
URL=[MeasureParent]
StringIndex=11
[MeasureTourTick2]
Measure=WebParser
URL=[MeasureParent]
StringIndex=12
[MeasureNum3]
Measure=WebParser
URL=[MeasureParent]
StringIndex=13
[MeasureNickname3]
Measure=WebParser
URL=[MeasureParent]
StringIndex=14
[MeasurePoints3]
Measure=WebParser
URL=[MeasureParent]
StringIndex=15
[MeasureCashPrize3]
Measure=WebParser
URL=[MeasureParent]
StringIndex=16
[MeasureProjected3]
Measure=WebParser
URL=[MeasureParent]
StringIndex=17
[MeasureTourTick3]
Measure=WebParser
URL=[MeasureParent]
StringIndex=18
[MeasureNum4]
Measure=WebParser
URL=[MeasureParent]
StringIndex=19
[MeasureNickname4]
Measure=WebParser
URL=[MeasureParent]
StringIndex=20
[MeasurePoints4]
Measure=WebParser
URL=[MeasureParent]
StringIndex=21
[MeasureCashPrize4]
Measure=WebParser
URL=[MeasureParent]
StringIndex=22
[MeasureProjected4]
Measure=WebParser
URL=[MeasureParent]
StringIndex=23
[MeasureTourTick4]
Measure=WebParser
URL=[MeasureParent]
StringIndex=24
[MeterValues]
Meter=STRING
MeasureName=MeasureNum1
MeasureName2=MeasureNickname1
MeasureName3=MeasurePoints1
MeasureName4=MeasureCashPrize1
MeasureName5=MeasureProjected1
MeasureName6=MeasureTourTick1
MeasureName7=MeasureNum2
MeasureName8=MeasureNickname2
MeasureName9=MeasurePoints2
MeasureName10=MeasureCashPrize2
MeasureName11=MeasureProjected2
MeasureName12=MeasureTourTick2
MeasureName13=MeasureNum3
MeasureName14=MeasureNickname3
MeasureName15=MeasurePoints3
MeasureName16=MeasureCashPrize3
MeasureName17=MeasureProjected3
MeasureName18=MeasureTourTick3
MeasureName19=MeasureNum4
MeasureName20=MeasureNickname4
MeasureName21=MeasurePoints4
MeasureName22=MeasureCashPrize4
MeasureName23=MeasureProjected4
MeasureName24=MeasureTourTick4
X=0
Y=0
Padding=15,5,15,5
FontColor=220,220,220
FontEffectColor=0,0,0
StringEffect=Shadow
SolidColor=0,0,0,150
FontSize=8
FontFace=Segoe UI
StringStyle=BOLD
StringAlign=LEFT
AntiAlias=1
Text=Rank: %1#CRLF#Nickname: %2#CRLF#Points: %3#CRLF#Cash Prize: %4#CRLF#Projected: %5#CRLF#Tournament Ticket: %6#CRLF#---------#CRLF#Rank: %7#CRLF#Nickname: %8#CRLF#Points: %9#CRLF#Cash Prize: %10#CRLF#Projected: %11#CRLF#Tournament Ticket: %12#CRLF#---------#CRLF#Rank: %13#CRLF#Nickname: %14#CRLF#Points: %15#CRLF#Cash Prize: %16#CRLF#Projected: %17#CRLF#Tournament Ticket: %18#CRLF#---------#CRLF#Rank: %19#CRLF#Nickname: %20#CRLF#Points: %21#CRLF#Cash Prize: %22#CRLF#Projected: %23#CRLF#Tournament Ticket: %24
DynamicVariables=1
Note that I added only four results. If you need more, you can simply increase their number by:
- Adding further #Item# variables into the RegExp option of the [MeasureParent] WebParser measure.
- Adding the corresponding number of [MeasureNumX], [MeasureNicknameX], [MeasurePointsX], [MeasureCashPrizeX], [MeasureProjectedX] and [MeasureTourTickX] measure, renumbering their StringIndex values.
- Adding the corresponding MeasureName options into the [MeterValues] meter and modifying its Text option.
-
- Posts: 3
- Joined: August 31st, 2020, 8:04 pm
Re: Using Web Parser to make RSS Feed display web text
Havent had time to try yet but wanted to say thanks.
I know the theme here is teach a man to fish, so I will attempt to learn the workings of that as well.
While I am learning, one challenge I had was that the downloadable web parser tutorial would not work for me. https://docs.rainmeter.net/tips/webparser-tutorial/ Wasn't sure if it was an outdated website or if it was my internet security settings.
I was also unclear on how to hide the raw HTML Code from the on screen display when using the web parser.
I know the theme here is teach a man to fish, so I will attempt to learn the workings of that as well.
While I am learning, one challenge I had was that the downloadable web parser tutorial would not work for me. https://docs.rainmeter.net/tips/webparser-tutorial/ Wasn't sure if it was an outdated website or if it was my internet security settings.
I was also unclear on how to hide the raw HTML Code from the on screen display when using the web parser.
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Using Web Parser to make RSS Feed display web text
Hm...Yeah, looks like the site I was using there has changed. I will work on fixing that.rainmeteruser01084 wrote: ↑September 1st, 2020, 9:13 pm Havent had time to try yet but wanted to say thanks.
I know the theme here is teach a man to fish, so I will attempt to learn the workings of that as well.
While I am learning, one challenge I had was that the downloadable web parser tutorial would not work for me. https://docs.rainmeter.net/tips/webparser-tutorial/ Wasn't sure if it was an outdated website or if it was my internet security settings.
I was also unclear on how to hide the raw HTML Code from the on screen display when using the web parser.
-
- Posts: 3
- Joined: August 31st, 2020, 8:04 pm
Re: Using Web Parser to make RSS Feed display web text
It works by the way forgot to followup and mention that as i said i would
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Using Web Parser to make RSS Feed display web text
Are you talking about my code? If you are, I'm glad and tomorrow will dig into it to add it to the Neon Space skin.rainmeteruser01084 wrote: ↑September 7th, 2020, 8:03 pm It works by the way forgot to followup and mention that as i said i would