#!/usr/bin/env python
 # vim:fileencoding=utf-8

from __future__ import absolute_import, division, print_function, unicode_literals

from calibre.web.feeds.news import BasicNewsRecipe


class BeforeWeGo(BasicNewsRecipe):
    title                 = 'Before We Go'
    __author__            = 'bugmen00t'
    description           = 'Before We Go Blog is a collective of Fantasy, Sci-Fi and Graphic Novel fans from around the world, passionate about providing awesome, enjoyable reviews for anyone who loves a good book!'  # noqa
    publisher             = 'BEFOREWEGOBLOG'
    category              = 'blog'
#     cover_url = u'https://i0.wp.com/beforewegoblog.com/wp-content/uploads/2021/09/beth-with-long-hair.jpeg'
    cover_url = u'https://i0.wp.com/beforewegoblog.com/wp-content/uploads/2021/01/before-we-go-blog-1.png'
    language              = 'en'
    no_stylesheets        = True
    remove_javascript = False
    auto_cleanup   = False
    oldest_article = 14
    max_articles_per_feed = 10

    remove_tags_before = dict(name='h1', attrs={'class': 'entry-title'})

    remove_tags_after = dict(name='div', attrs={'id': 'author-bio'})
#    remove_tags_after = dict(name='article')

    remove_tags =   [
        dict(name='div', attrs={'class': 'nectar-scrolling-text font_size_10vh custom_color has-custom-divider'}),
        dict(name='span', attrs={'class': 'meta-comment-count'}),
        dict(name='p', attrs={'id': 'breadcrumbs'})
       ]

    feeds = [
        ('Before We Go', 'https://beforewegoblog.com/feed/')
    ]
