From 81a501604128274d364c651ec7b37c3499fbd2d2 Mon Sep 17 00:00:00 2001
From: Kovid Goyal
Date: Sun, 8 May 2011 09:36:46 -0600
Subject: [PATCH] Updated recipes for Fronda and Rzeczpospolita
---
recipes/fronda.recipe | 17 +++++++++++------
recipes/icons/rzeczpospolita.png | Bin 0 -> 1195 bytes
recipes/rzeczpospolita.recipe | 11 ++++++++++-
3 files changed, 21 insertions(+), 7 deletions(-)
create mode 100644 recipes/icons/rzeczpospolita.png
diff --git a/recipes/fronda.recipe b/recipes/fronda.recipe
index f57c7ecccb..452dca9068 100644
--- a/recipes/fronda.recipe
+++ b/recipes/fronda.recipe
@@ -21,14 +21,19 @@ class Fronda(BasicNewsRecipe):
feeds = [(u'Infformacje', u'http://fronda.pl/news/feed')]
- keep_only_tags = [dict(name='h1', attrs={'class':'big'}),
- dict(name='ul', attrs={'class':'about clear'}),
- dict(name='div', attrs={'class':'content'})]
+ keep_only_tags = [dict(name='h2', attrs={'class':'news_title'}),
+ dict(name='div', attrs={'class':'naglowek_tresc'}),
+ dict(name='div', attrs={'id':'czytaj'}) ]
+
+ remove_tags = [dict(name='a', attrs={'class':'print'})]
+
preprocess_regexps = [
(re.compile(i[0], re.IGNORECASE | re.DOTALL), i[1]) for i in
- [ (r'Drukuj', lambda match: ''),
- (r'.*
', lambda match: ''),
+ [ (r'.*
', lambda match: ''),
(r'.*
', lambda match: ''),
(r'W.* lektury.*
', lambda match: ''),
- (r'Zobacz t.*?', lambda match: '') ]
+ (r'Zobacz t.*?', lambda match: ''),
+ (r'
]*>
', lambda match: ''),
+ (r'
', lambda match: ''),
+ (r'