recipes: remove most of garbage tags from ciekawostki_historyczne

This commit is contained in:
Tomasz Długosz 2016-10-15 21:41:03 +02:00
parent f279dc923a
commit 34c0a2f8dc

View File

@ -20,8 +20,8 @@ class Ciekawostki_Historyczne(BasicNewsRecipe):
remove_empty_feeds = True remove_empty_feeds = True
keep_only_tags = [dict(name='div', attrs={'class': 'post'})] keep_only_tags = [dict(name='div', attrs={'class': 'post'})]
recursions = 5 recursions = 5
remove_tags = [dict(id='singlepostinfo'), dict( remove_tags = [dict(id=['catapult-cookie-bar','header','footer','rightcolumn','singlepostinfo']), dict(
attrs={'class': ['books short floatRight', 'unprintable', 'booksTable', 'bawmrp']})] attrs={'class': ['ubm_banner','ciekawostki-slider-popular','books short floatRight', 'unprintable', 'booksTable', 'bawmrp']})]
feeds = [ feeds = [
(u'Staro\u017cytno\u015b\u0107', u'http://ciekawostkihistoryczne.pl/tag/starozytnosc/feed/'), (u'Staro\u017cytno\u015b\u0107', u'http://ciekawostkihistoryczne.pl/tag/starozytnosc/feed/'),