View Single Post
Old 01-21-2007, 07:08 AM   #8
Tommy
Enthusiast
Tommy began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Oct 2006
Location: Germany
Device: Iliad, Sony 505
RSS feeds on your iliad

Hi all,

it seems as if there is some interest to retrieve RSS feeds and read them on the iliad... It might be that I have the hack that makes this possible:
It's a perl script I named getfeed.pl. In order to run it, it might that one or two perl-packages need to be installed beforehand:
1. XML-XPath-1.13 (can be obtained at CPAN's)
2. LWP::Simple (came along with my perl distro [SUSE 10.1])

If you're a Penguin you can run it immediately from the console:

Code:
getfeed.pl -f http://feeds.feedburner.com/spaceheadlines -o myFeed.html
The above will fetch the given feed and produce an HTML file that you can copy to your iliad and read.

Please note, this hack, will only display the text of the feed, i.e. there won't be any images, neither will the "full article" be downloaded and incorporated!

So, essentially that's all... however, convenient usage looks differently
Therefore I made the script look for a config file (.getfeedrc) in the user's home directory and if present, read and parse it. Thus, setting up this config file accordingly will enable you to just enter
Code:
 getfeed.pl
and everything runs automatically.
I also attached my personal .getfeedrc. Having a look at it might help setting up your own one.
The "syntax" is pretty shellish, i.e. a '#' introduces a comment, so everything to the left of it will be ignored.

For those of you who know that LaTeX is not only the stuff from which medical gloves are made but the most powerful typesetting program out there, will find the possibility to create LaTeX files including a given style file quite handy:
If you enter
Code:
 getfeed.pl -F tex -C pdflatex -interaction=nonstopmode -o myFeeds.tex -S iliad.sty -o myFeeds.tex
on the command line (or uncomment the respective lines in the cofig file attached), a LaTeX file (myFeeds.tex) will be created and pdflatex will be called to create the PDF file(myFeeds.pdf). If you use stylefile iliad.sty I attached to this post, you'll be able to read the PDF without further zooming or such.

I hope one or the other of you out there will find it useful :-)

Best regards,
Tommy
Attached Files
File Type: pl getfeed.pl (14.5 KB, 495 views)
File Type: zip .getfeedrc.zip (572 Bytes, 476 views)
File Type: zip iliad.sty.zip (392 Bytes, 451 views)
Tommy is offline   Reply With Quote