from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1308572538(BasicNewsRecipe):
    title = 'Novinite.com'
    __author__ = 'Martin Tsanchev'
    description = 'Real time provider of the latest Bulgarian news in English'
    category = 'Business, Politics, Society, Sports, Crime, Lifestyle, World, People'
    language = 'en_BG'
    encoding = 'utf-8'
    oldest_article = 7
    max_articles_per_feed = 10
    keep_only_tags = [dict(name='div', attrs={'id': 'content'})]
    remove_tags = [dict(name='a', attrs={'class': 'twitter-share-button'})]
    remove_tags_after = dict(id='textsize')
    no_stylesheets = True
    feeds = [
        ('Business', 'http://www.novinite.com/services/news_rdf.php?category_id=1'),
        ('Finance', 'http://www.novinite.com/services/news_rdf.php?category_id=15'),
        ('Energy', 'http://www.novinite.com/services/news_rdf.php?category_id=16'),
        ('Industry', 'http://www.novinite.com/services/news_rdf.php?category_id=17'),
        ('Properties', 'http://www.novinite.com/services/news_rdf.php?category_id=18'),
        ('Politics', 'http://www.novinite.com/services/news_rdf.php?category_id=2'),
        ('Diplomacy', 'http://www.novinite.com/services/news_rdf.php?category_id=20'),
        ('Defense', 'http://www.novinite.com/services/news_rdf.php?category_id=21'),
        ('Bulgaria in EU', 'http://www.novinite.com/services/news_rdf.php?category_id=22'),
        ('Domestic', 'http://www.novinite.com/services/news_rdf.php?category_id=23'),
        ('Society', 'http://www.novinite.com/services/news_rdf.php?category_id=3'),
        ('Environment', 'http://www.novinite.com/services/news_rdf.php?category_id=24'),
        ('Education', 'http://www.novinite.com/services/news_rdf.php?category_id=25'),
        ('Culture', 'http://www.novinite.com/services/news_rdf.php?category_id=26'),
        ('Archaeology', 'http://www.novinite.com/services/news_rdf.php?category_id=34'),
        ('Health', 'http://www.novinite.com/services/news_rdf.php?category_id=62'),
        ('Sports', 'http://www.novinite.com/services/news_rdf.php?category_id=4'),
        ('Crime', 'http://www.novinite.com/services/news_rdf.php?category_id=5'),
        ('Lifestyle', 'http://www.novinite.com/services/news_rdf.php?category_id=6'),
        ('World', 'http://www.novinite.com/services/news_rdf.php?category_id=30'),
    ]
