
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
karss is an rss aggregator that displays multiple feeds in a single karamba theme, with entries sorted chronologically. It is based on multirss v1.2 by N7DR (http://www.kde-look.org/content/show.php?content=39022)
Differences include:
default dark background
larger font size (12 vs 10)
more entries at one time (25 vs 20)
reports "last updated" as time from last update
config option to use firefox instead of konqueror
rewritten and more managable innards
IMPORTANT INFO:
This theme depends on the PyXML package (for now). If you run it from command-line (superkaramba karss-03.skz), and get the following error:
> AttributeError: 'module' object has no attribute 'DefaultHandler'
Try installing the PyXML package. In kubuntu I believe this is called python-xml, so "sudo apt-get install python-xml". Please let me know if there are any other errors!
The first time you run karss, it will create a file feedlist.xml in a folder in your user's superkaramba directory (usually ~/.superkaramba/karss) The format of the xml file should be fairly self-explanatory. Modify it accordingly to add or remove feeds.
Other features/improvements may be added later on.
Planned features include:
on-click updating
forcing at least one entry from each feed to be present
per-feed colors
gui-based management of feeds
Feedback/comments/screenshots appreciated! :)
13 years ago
# CHANGELOG
# v 0.1 - Initial release. Almost identical to multirss v1.2
# v 0.2 - Spent some time cleaning up the code and figuring out what it does. Some bits are needlessly repeated.
# Introduced a html tag-stripper to clean up feeds that have html bits in them.
# Using time.time() to keep track of when we should update feeds
# Added option to use Firefox instead of Konqueror
# v 0.21 - Cleaned up the code, streamlining replicated code
# Tried to reduce the use of globals where they are not needed
# Fixed a redraw bug
# Moved feed configuration into a separate feedlist.xml file
# Changed the tag-stripper to reuse feedparser's. It's better.
# Added a karssutils module, containing the html stripper and the feedlist.xml parser (for now)
# v 0.3 - Rewrote the critical bits, making them more object-oriented. We now have a nice object
# to request a sorted list of entries from. Makes life much less messy.
# Separated the working end of the feed reader into the karssreader module.
# Created a simple logo for karss
# v 0.31 - Caused widget to update on clicking "Last Updated"
# Made the tooltip summaries better by including the title
# TODO
# Create an option to force at least one entry per feed.
# Gui-based config
# implement proper error handling in the feedlist.xml parser
13 years ago
# CHANGELOG
# v 0.1 - Initial release. Almost identical to multirss v1.2
# v 0.2 - Spent some time cleaning up the code and figuring out what it does. Some bits are needlessly repeated.
# Introduced a html tag-stripper to clean up feeds that have html bits in them.
# Using time.time() to keep track of when we should update feeds
# Added option to use Firefox instead of Konqueror
# v 0.21 - Cleaned up the code, streamlining replicated code
# Tried to reduce the use of globals where they are not needed
# Fixed a redraw bug
# Moved feed configuration into a separate feedlist.xml file
# Changed the tag-stripper to reuse feedparser's. It's better.
# Added a karssutils module, containing the html stripper and the feedlist.xml parser (for now)
# v 0.3 - Rewrote the critical bits, making them more object-oriented. We now have a nice object
# to request a sorted list of entries from. Makes life much less messy.
# Separated the working end of the feed reader into the karssreader module.
# Created a simple logo for karss
# v 0.31 - Caused widget to update on clicking "Last Updated"
# Made the tooltip summaries better by including the title
# TODO
# Create an option to force at least one entry per feed.
# Gui-based config
# implement proper error handling in the feedlist.xml parser
TeeAhr1
13 years ago
Report
ka9qlq
13 years ago
<?xml version="1.0"?>
<feedlist>
<feed>
<name>YO</name>
<URL>http://rss.news.yahoo.com/rss/oddlyenough</URL>
</feed>
<feed>
<name>YTS</name>
<URL>http://rss.news.yahoo.com/rss/topstories</URL>
</feed>
<feed>
<name>YT</name>
<URL>http://rss.news.yahoo.com/rss/tech</URL>
</feed>
<feed>
<name>Linux Weekly News</name>
<URL>http://www.lwn.net/headlines/rss</URL>
</feed>
</feedlist>
It worked before I added changes and when I went back to the above it still wont work. Thanks a gig.
Report
jerome2k
13 years ago
I'm using opensuse 10.2 and tried to install karss, but I get the same error message :
AttributeError: 'module' object has no attribute 'DefaultHandler'
I verified that python-xml is installed... so does anybody have an idea ???
thank you in advance
Report
andrerav
12 years ago
Here's the whole shebang:
andreas@nutty:~/download$ superkaramba 52908-karss-031.skz
karss version 0.31 , 11.Mar.2007 initialized
Questions, suggestions: saffsd@gmail.com
sys.path.insert(0, '/home/andreas/download/52908-karss-031.skz')
Call to initWidget failed
Traceback (most recent call last):
File "/home/andreas/download/52908-karss-031.skz/karss.py", line 74, in initWidget
File "/home/andreas/download/52908-karss-031.skz/karssutils.py", line 13, in <module>
AttributeError: 'module' object has no attribute 'DefaultHandler'
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/apport_python_hook.py", line 71, in apport_excepthook
pr['PythonArgs'] = '%r' % sys.argv
AttributeError: 'module' object has no attribute 'argv'
Original exception was:
Traceback (most recent call last):
File "/home/andreas/download/52908-karss-031.skz/karss.py", line 74, in initWidget
File "/home/andreas/download/52908-karss-031.skz/karssutils.py", line 13, in <module>
AttributeError: 'module' object has no attribute 'DefaultHandler'
Report
Hammett
13 years ago
The only thing I'd like is to make the background completely transparent. Is this possible??
Thanks in advance
Report
aniceweb
13 years ago
Report
fradeve
14 years ago
Good Work!
Report
saffsd
14 years ago
Report
saffsd
14 years ago
Report
fradeve
14 years ago
52908-karss-03.rc
52908-karss-02.rc
Report
saffsd
14 years ago
Report
fradeve
14 years ago
karss version 0.3 , 11.Feb.2007 initialized
Questions, suggestions: saffsd@gmail.com
sys.path.insert(0, '/home/fradeve/52908-karss-03.skz')
Call to initWidget failed
Traceback (most recent call last):
File "/home/fradeve/52908-karss-03.skz/karss.py", line 72, in initWidget
File "/home/fradeve/52908-karss-03.skz/karssutils.py", line 14, in ?
AttributeError: 'module' object has no attribute 'DefaultHandler'
What do you think?
Report
saffsd
14 years ago
Report
fradeve
14 years ago
Thanks! :-D
Report
fradeve
14 years ago
Report
fradeve
14 years ago
Report