KLive Football

Karamba & Superkaramba

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
Score 50.0%
Description:

NEW SEASON, NEW FEATURES

This Karamba theme displays LIVE Football results on your desktop. You can choose between many championships/competitions.


Requirements:
------------
- Because it parses an HTML sport site, Python (2.3) HTML parser libs are required.


What it does is the following:
-----------------------------
- you can see simultaneously up to 10 matches results from European Championships, all this being parsed from a French website
- if you CLICK ON A SCORE, you will see the scorers!
- if there are more than 10 matches at the time, you can SCROLL UP/DOWN the list with your mouse wheel
- when a goal is scored, you get notified by a pop-up in the upper left corner of your screen

Known Bugs:
----------
- pop-ups are sometimes a bit sensible to site updates.


PLEASE KEEP ME POSTED FOR SUGGESTIONS and of course ANY COMMENT WILL BE VERY WELCOMED!
Last changelog:

11 years ago

Release 1.4.2:
-------------
- Fixed bug (website content changed)

Release 1.4.1:
-------------
- Fixed bug (disappearing second team) after external update of website
(SORRY FOR THE INCONVENIENCE, I cannot control that...)

Release 1.4:
-----------
- Championship selection among many European Champs

Release 1.3:
-----------
- Few bugs fixed after website update (scorers reappear)
- beginning of an English translation

Release 1.2:
-----------
- Compilation in .skz file
- A few bugs resolved

gskbyte

12 years ago

This theme is really nice! I'm thinking about adapting it to show the ACB (basketball spanish league) results. I will notice you if I finish it.

PD: what icon and decoration themes are you using in your KDE desktop?

Report

anubisg1

12 years ago

it work with soccer or with my lovely FOOTBALL (the american one! http://www.nfl.com)

Report

LocoMojo

12 years ago

I got all excited thinking this was American football scores on the desktop, but then I saw that it was for soccer :(

How disappointing!

We really need something like this for American football or is there already something out there?

Anyone know?

LocoMojo

Report

C

SirRomanov

12 years ago

Quick update on that. I do not know a damn thing about US Football... but apparently you can see the scores on:
http://www.nfl.com/scores

I looked at the page source View/Page Source under Firefox) and it doesn't look very difficult to retrieve the info...

Looks like you are going to parse HTML pages... happy? :-D

Report

C

SirRomanov

12 years ago

Hey :)

Have a look to my code, the only thing for you to find is a website that would display the US Football results in an easy-to-understand HTML format...

Then you just need to get used to Python Expat Parser (easy as pie!) and you modify my theme so to realize your dream ;-)

Find such a site and I'll help you if you wish.

Btw, I was told to change soccer to football by a European fellow... wasn't all my fault ;-)

Report

LocoMojo

12 years ago

Thanks for your reply Sir Romanov. I just looked at your source and played around with it, but couldn't get it to work. I guess I don't know what I'm doing.

Any help would be greatly appreciated.

These are the scoreboards I'm interested in:

http://www.sportsline.com/nfl/scoreboard

http://www.sportsline.com/collegefootball/scoreboard

As for your calling it "football", no apologies necessary. I have Euro friends who never cease to rag on me about us calling American football "football". They keep telling me that it should be called something like "pansy assed, padded throw ball".

*Sigh*

That's alright though, as soon as the Americans start getting a little more interested in soccer, we'll own it and tell y'all what to call it.

:)

Thanks again, in advance, for any help.

LocoMojo

Report

LocoMojo

12 years ago

Thanks for your reply Sir Romanov. I just looked at your source and played around with it, but couldn't get it to work. I guess I don't know what I'm doing.

Any help would be greatly appreciated.

These are the scoreboards I'm interested in:

http://www.sportsline.com/nfl/scoreboard

http://www.sportsline.com/collegefootball/scoreboard

As for your calling it "football", no apologies necessary. I have Euro friends who never cease to rag on me about us calling American football "football". They keep telling me that it should be called something like "pansy assed, padded throw ball".

*Sigh*

That's alright though, as soon as the Americans start getting a little more interested in soccer, we'll own it and tell y'all what to call it.

:)

Thanks again, in advance, for any help.

LocoMojo

Report

hari1983

12 years ago

Gr8, gr8, brilliant stuff. Must have for a tux-crazy, konqi-crazy, football-crazy person. gr8 job. now i dont have to go to buggy, heavy flash-based content sites to get live score, its there in front of my eyes on the desktop. so what if the software is in french. in fact for software like this i will go online and learn french. ;) thanx mate.

Report

C

SirRomanov

12 years ago

Btw, you might also be very interested by another Football software of mine (kommander script but based on console-executable python scripts):
http://www.kde-apps.org/content/show.php/KFootStats+%2819+Championships%21%29?content=46131

I personnaly use it only in console (very handy), it works as follows:

classement $COUNTRY
resultats $COUNTRY

where classement means "ranking", resultats means "results" and $COUNTRY is the first 3 letters of the country you want... in French... so
* default is France
* ANG is England
* ESP is Spain
* ITA is Italy
* (...)

Enjoy.

Report

hari1983

12 years ago

heh heh heh, did u really think that i wud have noticed only ur karamba and not ur kommander script?? its already there on my laptop and with a desktop shortcut as well. :D not only that, i have gone thru the python scripts of both the tools and had a look at how they work. in the process, i have surfed the entire lequipe site and noticed how well it is made, tries to use more of AJAX and dynamic HTML, than resort to a vendor-dominated thing like FLASH, making it easy for guys like u to just use the powerful htmllib and build a script like this. gr8 thing. and u did well to spot it and study their DOM. lookin for more gr8 additions from u for all the KDE + football fans. :)

Report

C

SirRomanov

12 years ago

Thanks a lot.
Because the new season is coming, I guess I'll try to make a few changes.

First, because the site I take the info from changed quite a bit, when clicking on the scores, scorers are not displayed anymore... this'll be fixed in no time.

Then i'll try to make it translate automatically at least the "Termine" and "Mi-temps" in "Finished", "Half-Time". This won't take long.

And at last, maybe i'll make a menu so to choose only the championships of your interest.

If you have other suggestions...

Report

C

SirRomanov

12 years ago

Thanks a lot.
Because the new season is coming, I guess I'll try to make a few changes.

First, because the site I take the info from changed quite a bit, when clicking on the scores, scorers are not displayed anymore... this'll be fixed in no time.

Then i'll try to make it translate automatically at least the "Termine" and "Mi-temps" in "Finished", "Half-Time". This won't take long.

And at last, maybe i'll make a menu so to choose only the championships of your interest.

If you have other suggestions...

Report

TrashOverride

12 years ago

Hi, i've looked through the .py file but couldnt see where i can but the 2 backgrounds that u have included, and also i was wondering how can i change the colours of the letters.
10x

Report

C

SirRomanov

12 years ago

Hi,

The backgrounds were in use for a previous version, I do not even know if they still fit to the "window" size. If you still want to have one, uncomment the line:
# karamba.createBackgroundImage(widget, 0, 0, "fond2.png")
and maybe Gimp'ize the fond2.png file to suit your wish.

As for the colour, you have a bunch of :
karamba.changeTextColor(widget, theText, R,G,B)
in the code. You may want to change those also.

Every textebox is in fact representing a column and not a line in the widget.

If you still have problems, do not hesitate to post a message.

Report

squidy

12 years ago

Hi, congratulations.. it's a very nice idea. However, where is the source code? Could you show that for us?

Report

C

SirRomanov

12 years ago

Hey, looks like you dunno the mysteries of Superkaramba. Just rename the .skz into .zip, unzip it and the source is in the .py... as usual.
I made a few programs like these that parse HTML/XML webpages, with Python and Expat, it's easy as pie ;-)

Report

squidy

12 years ago

well.. i really didn't know about that.. thanks for explain.

Report

TrashOverride

12 years ago

maybe livescore.com ?

Report

C

SirRomanov

12 years ago

Well, I tried this one but it looks like you cannot really dump HTML content without a kind of grant... weird. I found another one, coded like crap, maybe i'll try to make a move towards this one.
I keep looking and will try to release something where you could choose the countries you're interested in.

Report

11 years ago

Release 1.4.2:
-------------
- Fixed bug (website content changed)

Release 1.4.1:
-------------
- Fixed bug (disappearing second team) after external update of website
(SORRY FOR THE INCONVENIENCE, I cannot control that...)

Release 1.4:
-----------
- Championship selection among many European Champs

Release 1.3:
-----------
- Few bugs fixed after website update (scorers reappear)
- beginning of an English translation

Release 1.2:
-----------
- Compilation in .skz file
- A few bugs resolved

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.4.2
updated Sep 19 2008
added Apr 28 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 3