mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
apparently no recent content
This commit is contained in:
parent
24df9008df
commit
3c1e81f868
Binary file not shown.
Before Width: | Height: | Size: 770 B |
@ -1,36 +0,0 @@
|
|||||||
__license__ = 'GPL v3'
|
|
||||||
import re
|
|
||||||
from calibre.web.feeds.news import BasicNewsRecipe
|
|
||||||
|
|
||||||
|
|
||||||
class TawernaRPG(BasicNewsRecipe):
|
|
||||||
title = u'Tawerna RPG'
|
|
||||||
__author__ = 'fenuks'
|
|
||||||
description = u'Tawerna RPG to ogólnopolski serwis zajmujący się fantastyką i grami fantastycznymi. Znajdziesz u nas zarówno gry fabularne, karciane, planszowe i komputerowe, a także recenzje, opowiadania i sporą dawkę humoru.' # noqa
|
|
||||||
category = 'fantasy, rpg, board games'
|
|
||||||
language = 'pl'
|
|
||||||
extra_css = '.slajd {list-style-type: none; padding-left: 0px; margin-left: 0px;} .lewanc {float: left; margin-right: 5px;} .srodek {display: block; margin-left: auto; margin-right: auto;}' # noqa
|
|
||||||
cover_url = 'http://www.tawerna.rpg.pl/img/logo.png'
|
|
||||||
preprocess_regexps = [(re.compile(u'<h2>Dodaj komentarz</h2>.*</body>',
|
|
||||||
re.DOTALL | re.IGNORECASE), lambda match: '</body>')]
|
|
||||||
use_embedded_content = False
|
|
||||||
oldest_article = 7
|
|
||||||
max_articles_per_feed = 100
|
|
||||||
no_stylesheets = True
|
|
||||||
remove_empty_feeds = True
|
|
||||||
remove_javascript = True
|
|
||||||
remove_attributes = ['style', 'font']
|
|
||||||
ignore_duplicate_articles = {'title', 'url'}
|
|
||||||
|
|
||||||
keep_only_tags = [dict(id='site')]
|
|
||||||
remove_tags = [dict(id=['player', 'komentarz'])]
|
|
||||||
remove_tags_after = dict(id='komentarz')
|
|
||||||
|
|
||||||
feeds = [(u'Artykuły', 'http://www.tawerna.rpg.pl/css/rss.rss')]
|
|
||||||
|
|
||||||
def preprocess_html(self, soup):
|
|
||||||
for r in soup.findAll(attrs={'class': 'powi'}):
|
|
||||||
r.parent.extract()
|
|
||||||
for c in soup.findAll(name=['li', 'ol', 'ul']):
|
|
||||||
c.name = 'div'
|
|
||||||
return soup
|
|
Loading…
x
Reference in New Issue
Block a user