Update Cosmo UK and andd PVP Online by Krittika Goyal

This commit is contained in:
Kovid Goyal 2012-10-07 23:09:58 +05:30
parent ccbf0f50bd
commit 10d371230d
2 changed files with 19 additions and 0 deletions

View File

@ -15,6 +15,7 @@ class AdvancedUserRecipe1306097511(BasicNewsRecipe):
max_articles_per_feed = 20
remove_empty_feeds = True
remove_javascript = True
ignore_duplicate_articles = {'title'}
preprocess_regexps = [
(re.compile(r'<!-- Begin tmpl module_competition_offer -->.*?<!-- End tmpl module_competition_offer-->', re.IGNORECASE | re.DOTALL), lambda match: '')]

18
recipes/pvp_online.recipe Normal file
View File

@ -0,0 +1,18 @@
from calibre.web.feeds.news import BasicNewsRecipe
class AdvancedUserRecipe1344926684(BasicNewsRecipe):
title = u'PVP online'
__author__ = 'Krittika Goyal'
oldest_article = 7
max_articles_per_feed = 100
#auto_cleanup = True
no_stylesheets = True
use_embedded_content = False
language = 'en'
remove_javascript = True
keep_only_tags = [dict(name='div', attrs={'class':'body'})]
remove_tags = [dict(name='div', attrs={'class':'prevBg'}),dict(name='div', attrs={'class':'nextBg'}),dict(name='div', attrs={'class':'postMeta'})]
feeds = [(u'Comics', u'http://pvponline.com/feed'), ]