View Single Post
Old 01-11-2008, 04:43 PM   #26
thetechnobear
Connoisseur
thetechnobear has a complete set of Star Wars action figures.thetechnobear has a complete set of Star Wars action figures.thetechnobear has a complete set of Star Wars action figures.
 
Posts: 65
Karma: 256
Join Date: Nov 2007
Location: Switzerland
Device: Iliad, Kindle K3, iPad , iPhone, etc...
sry, been away

attached is the changed file

my extra option is -P (for printed version)
and takes a parameter which is
from-url;to-url;
which is a normal reg expression

an example of my command line would be:

Code:
getfeed.pl 
-o BBC.tex 
-F tex 
-S ../res/iliad.sty 
-s 
-r 
-t BBC 
-C "/usr/texbin/pdflatex -interaction=nonstopmode BBC.tex" 
-f "http://newsrss.bbc.co.uk/rss/newsonline_world_edition/front_page/rss.xml;<div class="headline">;<div class="footer">" 
-P 'http:\/\/(.*);http://newsvote.bbc.co.uk/mpapps/pagetools/print/;'
the trick is to workout, how to get from the rss url to the print, but often its surprisingly simple (as is the case with the bbc)
Attached Files
File Type: pl getfeed.pl (19.8 KB, 304 views)
thetechnobear is offline   Reply With Quote