| 1 |
import re |
| 2 |
|
| 3 |
from calibre.web.feeds.news import BasicNewsRecipe |
| 4 |
|
| 5 |
|
| 6 |
class AdvancedUserRecipe1299640653(BasicNewsRecipe): |
| 7 |
title = 'Oakland North' |
| 8 |
oldest_article = 30 |
| 9 |
max_articles_per_feed = 100 |
| 10 |
|
| 11 |
language = 'en_US' |
| 12 |
__author__ = 'noah' |
| 13 |
description = 'Oakland North' |
| 14 |
category = 'news' |
| 15 |
no_stylesheets = True |
| 16 |
|
| 17 |
masthead_url = 'http://oaklandnorth.net/wp-content/themes/oaklandnorth/images/masthead.png' |
| 18 |
|
| 19 |
keep_only_tags = [dict(name='div', attrs={'class': re.compile(r'\bpost\b(?!-)', re.IGNORECASE)})] |
| 20 |
|
| 21 |
remove_tags_after = [dict(name='p', attrs={'class': 'post-postscript'})] |
| 22 |
|
| 23 |
remove_tags = [dict(name='p', attrs={'class': 'post-postscript'})] |
| 24 |
|
| 25 |
feeds = [('All Headlines', 'http://oaklandnorth.net/feed/')] |