Thread: web2lrf
View Single Post
Old 03-18-2008, 05:42 PM   #214
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,476
Karma: 27757440
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
OK The beta code is available at

http://theory.caltech.edu/~kovid/libprs500-0.4.42.exe
http://theory.caltech.edu/~kovid/libprs500-0.4.42.dmg
http://theory.caltech.edu/~kovid/lib...4.42-py2.5.egg

You can use the new code with
Code:
feeds2lrf Newsweek
feeds2lrf Dilbert
feeds2lrf "The Atlantic"
feeds2lrf Portfolio
All the old profiles can be also be fetched with feeds2lrf (though this needs testing). feeds2lrf --help to see the names you have to use.

You can try your own profiles with
Code:
feeds2lrf filename.py
Where filename.py is the name of a file with your custom recipe (profiles have been renamed to recipes) in it.

For debugging, feeds2lrf has a couple of useful options: --test and --debug

Also you can just do the download without conversion to LRF with feeds2disk

The new builtin recipes are available at http://libprs500.kovidgoyal.net/brow.../feeds/recipes

The cool new features like remove_tags, remove_tags_after, remove_tags_before, etc. are documented in the code of BasicNewsRecipe
at http://libprs500.kovidgoyal.net/brow.../feeds/news.py

The one thing that I haven't tested is Custom profiles using the GUI, but all the old builtin profiles should work.

Note that this is very new code, so there are going to be bugs, especially on non-linux platforms.
kovidgoyal is offline   Reply With Quote