from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1283848012(BasicNewsRecipe):
    description = 'This is Globes.co.il.'
    cover_url = 'https://images.globes.co.il/globes/logo-138-35-2.svg?ver=1'
    title = 'Globes'
    language = 'he'
    __author__ = 'marbs & barakplasma'
    extra_css = 'img {max-width:100%;} body{direction: rtl;max-width:100%;}title{direction: rtl; } article_description{direction: rtl; }, a.article{direction: rtl;max-width:100%;} calibre_feed_description{direction: rtl; }'  # noqa: E501
    simultaneous_downloads = 5
    remove_javascript = True
    keep_only_tags = [
        dict(name='h1', attrs={'id': 'F_Title'}),
        dict(name='h2', attrs={'id': 'coteret_SubCoteretText'}),
        dict(name='div', attrs={'class': 'articleInner'}),
    ]
    timefmt = '[%a, %d %b, %Y]'
    oldest_article = 1
    max_articles_per_feed = 100
    remove_attributes = ['width', 'style']

    feeds = [
        ('עידכוני RSS ', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=3038'),
        ('כל הכתבות', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=2'),
        ('שוק ההון', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=585'),
        ('בארץ', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=9917'),
        ('גלובלי ושוקי עולם', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=1225'),
        ('גלובסטק', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=594'),
        ('דין וחשבון', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=829'),
        ('דעות', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=845'),
        ('וידאו', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=2007'),
        ('ליידי גלובס', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=3314'),
        ('מגזין G', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=3312'),
        ('nadlan', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=607'),
        ('נתח שוק וצרכנות', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=821'),
        ('מטבעות דיגיטליים', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=9758'),
        ('קריירה', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iid=3266'),
        ('תיירות', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iid=9010'),
        ('רכב', 'https://www.globes.co.il/webservice/rss/rssfeeder.asmx/FeederNode?iID=3220'),
    ]
