| 1 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 2 |
|
| 3 |
|
| 4 |
class MartinFowler(BasicNewsRecipe): |
| 5 |
title = 'Martin Fowler Blog' |
| 6 |
description = 'Software development is a young profession, and we are still learning the techniques and building the tools to do it effectively.' |
| 7 |
language = 'en' |
| 8 |
oldest_article = 14 |
| 9 |
|
| 10 |
keep_only_tags = [dict(name='main')] |
| 11 |
|
| 12 |
remove_tags = [dict(name='div', attrs={'class': 'bio'}), dict(name='div', attrs={'class': 'article-card'}), dict(name='hr', attrs={'class': 'bodySep'})] |
| 13 |
|
| 14 |
remove_tags_after = [dict(name='div', attrs={'class': lambda x: x and 'paperBody' in x.split()})] |
| 15 |
|
| 16 |
use_embedded_content = False |
| 17 |
no_stylesheets = True |
| 18 |
|
| 19 |
feeds = [('Martin Fowler Blog', 'https://martinfowler.com/feed.atom')] |