#!/usr/bin/env python
# vim:fileencoding=utf-8
from calibre.web.feeds.news import BasicNewsRecipe


class AdvancedUserRecipe1718094419(BasicNewsRecipe):
    title = 'United Nations'
    language = 'en'
    __author__ = 'Spicy Poison'
    description = (
        'The United Nations is a diplomatic and political international organization whose stated'
        ' purposes are to maintain international peace and security, develop friendly relations among nations,'
        ' achieve international cooperation, and serve as a centre for harmonizing the actions of nations.'
        ' It is the world’s largest international organization.'
    )
    oldest_article = 30
    max_articles_per_feed = 50
    ignore_duplicate_articles = {'title', 'url'}
    encoding = 'utf-8'
    masthead_url = 'https://img.jagranjosh.com/imported/images/E/Others/UNLOGO.jpg'
    remove_empty_feeds = True
    auto_cleanup = True

    feeds = [
        ('Top Stories', 'https://news.un.org/feed/subscribe/en/news/all/rss.xml'),
        ('Asia Pacific', 'https://news.un.org/feed/subscribe/en/news/region/asia-pacific/feed/rss.xml'),
        ('Health', 'https://news.un.org/feed/subscribe/en/news/topic/health/feed/rss.xml'),
        ('UN Affairs', 'https://news.un.org/feed/subscribe/en/news/topic/un-affairs/feed/rss.xml'),
        ('Law and Crime Prevention', 'https://news.un.org/feed/subscribe/en/news/topic/law-and-crime-prevention/feed/rss.xml'),
        ('Human Rights', 'https://news.un.org/feed/subscribe/en/news/topic/human-rights/feed/rss.xml'),
        ('Humanitarian Aid', 'https://news.un.org/feed/subscribe/en/news/topic/humanitarian-aid/feed/rss.xml'),
        ('Climate Change', 'https://news.un.org/feed/subscribe/en/news/topic/climate-change/feed/rss.xml'),
        ('Culture and Education', 'https://news.un.org/feed/subscribe/en/news/topic/culture-and-education/feed/rss.xml'),
        ('Economic Development', 'https://news.un.org/feed/subscribe/en/news/topic/economic-development/feed/rss.xml'),
        ('Women', 'https://news.un.org/feed/subscribe/en/news/topic/women/feed/rss.xml'),
        ('Peace and Security', 'https://news.un.org/feed/subscribe/en/news/topic/peace-and-security/feed/rss.xml'),
        ('Migrants and Refugees', 'https://news.un.org/feed/subscribe/en/news/topic/migrants-and-refugees/feed/rss.xml'),
        ('SDGs', 'https://news.un.org/feed/subscribe/en/news/topic/sdgs/feed/rss.xml'),
    ]
