__license__ = 'GPL v3' __copyright__ = '2008, Darko Miletic ' ''' lrb.co.uk ''' from calibre.web.feeds.news import BasicNewsRecipe class LondonReviewOfBooks(BasicNewsRecipe): title = u'London Review of Books' __author__ = u'Darko Miletic' description = u'Literary review publishing essay-length book reviews and topical articles on politics, literature, history, philosophy, science and the arts by leading writers and thinkers' category = 'news, literature, England' publisher = 'London Review of Books' oldest_article = 7 max_articles_per_feed = 100 language = 'en_GB' no_stylesheets = True use_embedded_content = False encoding = 'utf-8' conversion_options = { 'comments' : description ,'tags' : category ,'language' : language ,'publisher' : publisher } keep_only_tags = [dict(name='div' , attrs={'id' :'main'})] remove_tags = [ dict(name='div' , attrs={'class':['pagetools','issue-nav-controls','nocss']}) ,dict(name='div' , attrs={'id' :['mainmenu','precontent','otherarticles'] }) ,dict(name='span', attrs={'class':['inlineright','article-icons']}) ,dict(name='ul' , attrs={'class':'article-controls'}) ,dict(name='p' , attrs={'class':'meta-info' }) ] feeds = [(u'London Review of Books', u'http://www.lrb.co.uk/lrbrss.xml')]