It is currently April 19th, 2024, 11:35 am
Football (soccer...) skin
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
How do I know if a site uses java?
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
Basically I'm checking its source code and look there for the javascript expression. If you find it, the site uses those scripts, otherwise it doesn't.
There could be more accurate procedures, but I think this does work in most cases.
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
I haven't found any info source that doesn't use javascript,hope you'll still succeed.
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
For instance this is a source which looks to be alright: https://int.soccerway.com/teams/england/manchester-city-football-club/676/. I think it can be used. But probably it shows only the results of Manchester City?
But just a quick code, which returns the result of the first match (for now, only of the first match). If it's ok, further information can be added, but first please check the code:
Code: Select all
[Rainmeter]
Update=1000
DynamicWindowSize=1
[Variables]
[MeasureRainmeter]
Measure=WebParser
UpdateRate=870
Url=https://int.soccerway.com/teams/england/manchester-city-football-club/676/
RegExp=(?siU)<td class="team team-a ">.*<a href="/teams.*/" title=".*">(.*)</a>.*(\d{1,2}) - (\d{1,2}).*<a href="/teams.*/" title=".*">(.*)</a>
[MeasureTeam1]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=1
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureTeam2]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=4
RegExpSubstitute=1
Substitute="\n":"","\s{2,}":""
[MeasureResult1]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=2
[MeasureResult2]
Measure=WebParser
Url=[MeasureRainmeter]
StringIndex=3
[MeterResult]
Meter=STRING
MeasureName=MeasureTeam1
MeasureName2=MeasureTeam2
MeasureName3=MeasureResult1
MeasureName4=MeasureResult2
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=%1 - %2#CRLF#%3 - %4
DynamicVariables=1
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
if info like other teams and date&time will be added it will be fantastic,but looks good thanks
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
Alright, I'm gonna work with it a little bit, but this only tomorrow, since here is almost midnight, and I'm not working anymore tonight.
Stay tuned if interested.
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
No problem,here it already midnight, all good
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
No, I think it doesn't. The same URL posted by you, was tom0711's second choice and didn't help, because all those sites are using java scripts. Otherwise after a quick check, it seems the code you posted doesn't work, doesn't return anything.
-
- Rainmeter Sage
- Posts: 16144
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Football (soccer...) skin
Well, it shows nothing here. Checked second time and nothing.dvo wrote: ↑May 24th, 2020, 7:30 am it works here shows liverpool 29 27 1 1 66 21 +45 82 over here in black
grabbed it from https://pastebin.com/Z42emaVU // pastebin
But let's wait for tom0711's reply and see what he says.
-
- Posts: 40
- Joined: April 29th, 2020, 5:55 pm
Re: Football (soccer...) skin
The Code works
You do not have the required permissions to view the files attached to this post.