On Fri, 20 Apr 2012, Jelle Huisman wrote:
I'd like to typeset an RSS feed
I was also recently thinking along these lines (set a cron job to typeset RSS feed into pdf and email to kindle). So, please release your code once you are done.
and I was wondering whether I could instruct ConTeXt to fetch the contents of a url like: http://feeds.bbci.co.uk/news/rss.xml
Suppose you write a macro \processrssfile{...} that takes a local rss file and typesets it, then you can simply call \processrssfile{\locfilename{http://feeds.bbci.co.uk/news/rss.xml}} to process a remote file. ConTeXt downloads and caches the file. On subsequent calls, the cached file is used. IIRC, the cache remains valid for a day and it is possible to change the threshold after which a new file is fetched. FWIW, I have added this to t-vim.tex so it can pretty-print remote files. This only works with http:// or ftp:// and not with https:// Aditya