mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Futurismic by DM. Fixes #6514 (New recipe for SF blog Futurismic)
This commit is contained in:
parent
51c56af079
commit
c1bf0ebd13
BIN
resources/images/news/futurismic.png
Normal file
BIN
resources/images/news/futurismic.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 479 B |
38
resources/recipes/futurismic.recipe
Normal file
38
resources/recipes/futurismic.recipe
Normal file
@ -0,0 +1,38 @@
|
||||
|
||||
__license__ = 'GPL v3'
|
||||
__copyright__ = '2010, Darko Miletic <darko.miletic at gmail.com>'
|
||||
'''
|
||||
futurismic.com
|
||||
'''
|
||||
|
||||
from calibre.web.feeds.news import BasicNewsRecipe
|
||||
|
||||
class Futurismic(BasicNewsRecipe):
|
||||
title = 'Futurismic'
|
||||
__author__ = 'Darko Miletic'
|
||||
description = 'Near-future science fiction and fact since 2001'
|
||||
oldest_article = 15
|
||||
max_articles_per_feed = 100
|
||||
language = 'en'
|
||||
encoding = 'utf-8'
|
||||
no_stylesheets = True
|
||||
use_embedded_content = False
|
||||
publication_type = 'blog'
|
||||
extra_css = ' body{font-family: Arial,Verdana,sans-serif} '
|
||||
|
||||
conversion_options = {
|
||||
'comment' : description
|
||||
, 'tags' : 'blog, sf'
|
||||
, 'publisher': 'Futurismic'
|
||||
, 'language' : language
|
||||
}
|
||||
|
||||
remove_attributes = ['width','height']
|
||||
keep_only_tags = [dict(attrs={'class':['post','commentlist']})]
|
||||
remove_tags = [dict(attrs={'class':['sociable','feedback','tagwords']})]
|
||||
feeds = [(u'Posts', u'http://feeds2.feedburner.com/futurismic_feed')]
|
||||
|
||||
def preprocess_html(self, soup):
|
||||
return self.adeify_images(soup)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user