mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Oakland North by noah
This commit is contained in:
parent
0710e436c9
commit
f20c34b6f6
23
resources/recipes/oakland_north.recipe
Normal file
23
resources/recipes/oakland_north.recipe
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
import re
|
||||||
|
|
||||||
|
class AdvancedUserRecipe1299640653(BasicNewsRecipe):
|
||||||
|
title = u'Oakland North'
|
||||||
|
oldest_article = 30
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
|
||||||
|
language = 'en'
|
||||||
|
__author__ = 'noah'
|
||||||
|
description = 'Oakland North'
|
||||||
|
category = 'news'
|
||||||
|
no_stylesheets = True
|
||||||
|
|
||||||
|
masthead_url = 'http://oaklandnorth.net/wp-content/themes/oaklandnorth/images/masthead.png'
|
||||||
|
|
||||||
|
keep_only_tags = [dict(name='div', attrs={'class':re.compile(r'\bpost\b(?!-)', re.IGNORECASE)})]
|
||||||
|
|
||||||
|
remove_tags_after = [dict(name='p', attrs={'class':'post-postscript'})]
|
||||||
|
|
||||||
|
remove_tags = [dict(name='p', attrs={'class':'post-postscript'})]
|
||||||
|
|
||||||
|
feeds = [(u'All Headlines', u'http://oaklandnorth.net/feed/')]
|
Loading…
x
Reference in New Issue
Block a user