mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
add km_blog - blog J. Korwin-Mikke
This commit is contained in:
parent
7fdce6b2fd
commit
0826df5746
BIN
recipes/icons/km_blog.png
Normal file
BIN
recipes/icons/km_blog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 532 B |
37
recipes/km_blog.recipe
Normal file
37
recipes/km_blog.recipe
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
|
||||||
|
__license__ = 'GPL v3'
|
||||||
|
__author__ = 'teepel <teepel44@gmail.com>, Artur Stachecki <artur.stachecki@gmail.com>'
|
||||||
|
|
||||||
|
'''
|
||||||
|
korwin-mikke.pl/blog
|
||||||
|
'''
|
||||||
|
|
||||||
|
from calibre.web.feeds.news import BasicNewsRecipe
|
||||||
|
import re
|
||||||
|
|
||||||
|
class km_blog(BasicNewsRecipe):
|
||||||
|
title = u'Korwin-Mikke Blog'
|
||||||
|
__author__ = 'teepel <teepel44@gmail.com>'
|
||||||
|
language = 'pl'
|
||||||
|
description ='Wiadomości z bloga korwin-mikke.pl/blog'
|
||||||
|
INDEX='http://korwin-mikke.pl/blog'
|
||||||
|
remove_empty_feeds= True
|
||||||
|
oldest_article = 7
|
||||||
|
max_articles_per_feed = 100
|
||||||
|
remove_javascript=True
|
||||||
|
no_stylesheets=True
|
||||||
|
remove_empty_feeds = True
|
||||||
|
|
||||||
|
feeds = [(u'blog', u'http://korwin-mikke.pl/blog/rss')]
|
||||||
|
|
||||||
|
keep_only_tags =[]
|
||||||
|
#this line should show title of the article, but it doesnt work
|
||||||
|
keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'posts view'}))
|
||||||
|
keep_only_tags.append(dict(name = 'div', attrs = {'class' : 'text'}))
|
||||||
|
keep_only_tags.append(dict(name = 'h1'))
|
||||||
|
|
||||||
|
remove_tags =[]
|
||||||
|
remove_tags.append(dict(name = 'p', attrs = {'class' : 'float_right'}))
|
||||||
|
remove_tags.append(dict(name = 'p', attrs = {'class' : 'date'}))
|
||||||
|
|
||||||
|
remove_tags_after=[(dict(name = 'div', attrs = {'class': 'text'}))]
|
Loading…
x
Reference in New Issue
Block a user