mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Pando Daily by Darko Miletic
Fixes #1428264 [New recipe for PandoDaily](https://bugs.launchpad.net/calibre/+bug/1428264)
This commit is contained in:
parent
72d47ba937
commit
9e7d4d0ed9
BIN
recipes/icons/pandodaily.png
Normal file
BIN
recipes/icons/pandodaily.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 686 B |
43
recipes/pandodaily.recipe
Normal file
43
recipes/pandodaily.recipe
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
__license__ = 'GPL v3'
|
||||||
|
__copyright__ = '2015, Darko Miletic <darko.miletic at gmail.com>'
|
||||||
|
'''
|
||||||
|
pando.com
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
|
||||||
|
class PandoDaily(BasicNewsRecipe):
|
||||||
|
title = 'PandoDaily'
|
||||||
|
__author__ = 'Darko Miletic'
|
||||||
|
description = 'speaking truth to the new power'
|
||||||
|
publisher = 'PandoDaily'
|
||||||
|
category = 'news, politics, technology, USA, World'
|
||||||
|
oldest_article = 15
|
||||||
|
max_articles_per_feed = 200
|
||||||
|
no_stylesheets = True
|
||||||
|
encoding = 'utf8'
|
||||||
|
use_embedded_content = False
|
||||||
|
language = 'en'
|
||||||
|
remove_empty_feeds = True
|
||||||
|
publication_type = 'newsportal'
|
||||||
|
extra_css = """
|
||||||
|
body{font-family: Georgia,serif }
|
||||||
|
img{margin-bottom: 0.4em; display:block}
|
||||||
|
"""
|
||||||
|
|
||||||
|
conversion_options = {
|
||||||
|
'comment' : description
|
||||||
|
, 'tags' : category
|
||||||
|
, 'publisher' : publisher
|
||||||
|
, 'language' : language
|
||||||
|
}
|
||||||
|
|
||||||
|
remove_tags = [
|
||||||
|
dict(name=['meta','link','object']),
|
||||||
|
dict(attrs={'class':'share_widgets'})
|
||||||
|
]
|
||||||
|
|
||||||
|
keep_only_tags=[dict(name='h1', attrs={'class':'block'}), dict(name='div', attrs={'class':'post-content'})]
|
||||||
|
|
||||||
|
feeds = [(u'Articles', u'http://pando.com/feed')]
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user