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

class AdvancedUserRecipe1716091656(BasicNewsRecipe):
    title          = 'How-To Geek'
    language = 'en'
    description = 'How-To Geek is an digital publication focused on technology, reaching millions of readers each month.'
    __author__ = 'Spicy Poison'
    publisher = 'Valnet Publishing Group'
    encoding = 'utf-8'
    use_embedded_content = False
    masthead_url = 'https://www.valnetinc.com/images/brand/htg-logo-full-colored-light.svg'
    no_stylesheets = True
    ignore_duplicate_articles = {'title', 'url'}
    remove_empty_feeds = True
    oldest_article = 7
    max_articles_per_feed = 50
    auto_cleanup   = True

    feeds          = [
        #Desktop
        ('Desktop', 'https://www.howtogeek.com/feed/category/desktop/'),
        ('Windows', 'https://www.howtogeek.com/feed/category/windows/'),
        ('Mac', 'https://www.howtogeek.com/feed/category/mac/'),
        ('Linux', 'https://www.howtogeek.com/feed/category/linux/'),
        ('Chromebook', 'https://www.howtogeek.com/feed/category/chromebook-chrome-os/'),
        #Mobile
        ('Mobile', 'https://www.howtogeek.com/feed/category/mobile/'),
        ('Android', 'https://www.howtogeek.com/feed/category/android/'),
        ('iOS', 'https://www.howtogeek.com/feed/tag/ios/'),
        ('Cellular Carriers', 'https://www.howtogeek.com/feed/category/cellular-carriers/'),
        #Hardware
        ('Hardware', 'https://www.howtogeek.com/feed/category/hardware/'),
        ('Computer Hardware', 'https://www.howtogeek.com/feed/category/hardware/'),
        ('Wifi & Networking', 'https://www.howtogeek.com/feed/category/wifi-routers/'),
        ('Smart Home', 'https://www.howtogeek.com/feed/category/smart-home/'),
        ('eReaders', 'https://www.howtogeek.com/feed/category/ereaders/'),
        ('Audio', 'https://www.howtogeek.com/feed/category/audio/'),
        ('Televisions', 'https://www.howtogeek.com/feed/category/tv/'),
        #Web
        ('Web', 'https://www.howtogeek.com/feed/category/web/'),
        ('Web Apps', 'https://www.howtogeek.com/feed/category/apps-web-apps/'),
        ('Social Media', 'https://www.howtogeek.com/feed/category/social-media/'),
        ('Computer History', 'https://www.howtogeek.com/feed/category/computer-history/'),
        ('Cyber Security', 'https://www.howtogeek.com/feed/category/cybersecurity/'),
        ('Google', 'https://www.howtogeek.com/feed/category/google/'),
        ('Microsoft', 'https://www.howtogeek.com/feed/category/microsoft/'),
        ('Privacy & Security', 'https://www.howtogeek.com/feed/category/privacy-security/'),
        #Cutting Edge
        ('Cutting Edge', 'https://www.howtogeek.com/feed/category/cutting-edge/'),
        ('Virtual Reality', 'https://www.howtogeek.com/feed/category/virtual-reality/'),
        ('AI & Machine Learning', 'https://www.howtogeek.com/feed/category/ai-machine-learning/'),
        #Lifestyle
        ('Lifestyle', 'https://www.howtogeek.com/feed/category/lifestyle/'),
        ('Gaming', 'https://www.howtogeek.com/feed/category/video-games/'),
        ('Streaming', 'https://www.howtogeek.com/feed/category/cord-cutting-streaming/'),
        ('Photography', 'https://www.howtogeek.com/feed/category/photography/'),
        ('DIY', 'https://www.howtogeek.com/feed/category/diy/'),
        
        ('Product Reviews', 'https://www.howtogeek.com/feed/category/product-reviews/'),
        ('Buying Guides', 'https://www.howtogeek.com/feed/buying-guides/'),
        ('Deals', 'https://www.howtogeek.com/feed/tag/deals/'),
        
        #Discontinued Feeds
        #('Electric Vehicles', 'https://www.howtogeek.com/feed/category/electric-vehicles/'),
        #('Cryptocurrency', 'https://www.howtogeek.com/feed/category/cryptocurrency/'),
    ]