| 1 |
#!/usr/bin/env python |
| 2 |
# vim:fileencoding=utf-8 |
| 3 |
|
| 4 |
from __future__ import absolute_import, division, print_function, unicode_literals |
| 5 |
|
| 6 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 7 |
|
| 8 |
|
| 9 |
class BeforeWeGo(BasicNewsRecipe): |
| 10 |
title = 'Before We Go' |
| 11 |
__author__ = 'bugmen00t' |
| 12 |
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: E501 |
| 13 |
publisher = 'BEFOREWEGOBLOG' |
| 14 |
category = 'blog' |
| 15 |
# cover_url = u'https://i0.wp.com/beforewegoblog.com/wp-content/uploads/2021/09/beth-with-long-hair.jpeg' |
| 16 |
cover_url = 'https://i0.wp.com/beforewegoblog.com/wp-content/uploads/2021/01/before-we-go-blog-1.png' |
| 17 |
language = 'en' |
| 18 |
no_stylesheets = True |
| 19 |
remove_javascript = False |
| 20 |
auto_cleanup = False |
| 21 |
oldest_article = 14 |
| 22 |
max_articles_per_feed = 10 |
| 23 |
|
| 24 |
remove_tags_before = dict(name='h1', attrs={'class': 'entry-title'}) |
| 25 |
|
| 26 |
remove_tags_after = dict(name='div', attrs={'id': 'author-bio'}) |
| 27 |
# remove_tags_after = dict(name='article') |
| 28 |
|
| 29 |
remove_tags = [ |
| 30 |
dict(name='div', attrs={'class': 'nectar-scrolling-text font_size_10vh custom_color has-custom-divider'}), |
| 31 |
dict(name='span', attrs={'class': 'meta-comment-count'}), |
| 32 |
dict(name='p', attrs={'id': 'breadcrumbs'}), |
| 33 |
] |
| 34 |
|
| 35 |
feeds = [('Before We Go', 'https://beforewegoblog.com/feed/')] |