from calibre.web.feeds.news import BasicNewsRecipe class AdvancedUserRecipe1253477125(BasicNewsRecipe): title = 'Sabah' __author__ = 'Deniz O\u011fuz' language = 'tr' oldest_article = 1 max_articles_per_feed = 20 cover_url = 'http://www.sabah.com.tr/c/sb/i/sabah_logo.gif' no_stylesheets = True remove_tags = [dict(name='div', attrs={'style': ['width: 200px', 'border-top: #d8d8d8 1px dotted', 'width: 200px; margin-right: 5px', 'padding-top: 1px']})] keep_only_tags = [dict(name='div', attrs={'class': ['haber line_height_def', 'haber haber_renk line_height_def']})] extra_css = ''' body{font-family:Arial,Helvetica,sans-serif; font-size:small; align:left} h1{font-size:large;} .sh{font-size:large; font-weight:bold} .cap{font-size:xx-small; } .lu{font-size:xx-small; } .ds{font-size:xx-small; } .mvb{font-size:xx-small;} .by1{font-size:x-small; color:#666666} .byd{font-size:x-small;} ''' feeds = [ ('Son 24 Saat', 'http://www.sabah.com.tr/rss/Son24Saat.xml'), ('Ekonomi', 'http://www.sabah.com.tr/rss/Ekonomi.xml'), ('G\xfcndem', 'http://www.sabah.com.tr/rss/Gundem.xml'), ('Siyaset', 'http://www.sabah.com.tr/rss/Siyaset.xml'), ('Yazarlar', 'http://www.sabah.com.tr/rss/Yazarlar.xml'), ('D\xfcnya', 'http://www.sabah.com.tr/rss/Dunya.xml'), ('Teknoloji', 'http://www.sabah.com.tr/rss/Teknoloji.xml'), ('Spor', 'http://www.sabah.com.tr/rss/Spor.xml'), ('G\xfcn\xfcn \u0130\xe7inden', 'http://www.sabah.com.tr/rss/gununicinden.xml'), ('Emlak', 'http://www.sabah.com.tr/rss/Emlak.xml'), ]