mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-09-29 15:31:08 -04:00
46 lines
2.2 KiB
Python
46 lines
2.2 KiB
Python
#!/usr/bin/env python
|
|
from calibre.web.feeds.news import BasicNewsRecipe
|
|
|
|
class AdvancedUserRecipe1308312288(BasicNewsRecipe):
|
|
title = u'Philadelphia Inquirer'
|
|
__author__ = 'sexymax15'
|
|
language = 'en'
|
|
description = 'Daily news from the Philadelphia Inquirer'
|
|
oldest_article = 15
|
|
max_articles_per_feed = 20
|
|
use_embedded_content = False
|
|
remove_empty_feeds = True
|
|
no_stylesheets = True
|
|
remove_javascript = True
|
|
|
|
# remove_tags_before = {'class':'article_timestamp'}
|
|
#remove_tags_after = {'class':'graylabel'}
|
|
keep_only_tags= [dict(name=['h1','p'])]
|
|
remove_tags = [dict(name=['hr','dl','dt','img','meta','iframe','link','script','form','input','label']),
|
|
dict(id=['toggleConfirmEmailDiv','toggleTOS','toggleUsernameMsgDiv','toggleConfirmYear','navT1_philly','secondaryNav','navPlacement','globalPrimaryNav'
|
|
,'ugc-footer-philly','bv_footer_include','footer','header',
|
|
'container_rag_bottom','section_rectangle','contentrightside'])
|
|
,{'class':['megamenu3 megamenu','container misc','container_inner misc_inner'
|
|
,'misccontainer_left_32','headlineonly','misccontainer_middle_32'
|
|
,'misccontainer_right_32','headline formBegin',
|
|
'post_balloon','relatedlist','linkssubhead','b_sq','dotted-rule-above'
|
|
,'container','headlines-digest','graylabel','container_inner'
|
|
,'rlinks_colorbar1','rlinks_colorbar2','supercontainer','container_5col_left','container_image_left',
|
|
'digest-headline2','digest-lead','container_5col_leftmiddle',
|
|
'container_5col_middlemiddle','container_5col_rightmiddle'
|
|
,'container_5col_right','divclear','supercontainer_outer force-width',
|
|
'supercontainer','containertitle kicker-title',
|
|
'pollquestion','pollchoice','photomore','pollbutton','container rssbox','containertitle video ',
|
|
'containertitle_image ','container_tabtwo','selected'
|
|
,'shadetabs','selected','tabcontentstyle','tabcontent','inner_container'
|
|
,'arrow','container_ad','containertitlespacer','adUnit','tracking','sitemsg_911 clearfix']}]
|
|
|
|
extra_css = """
|
|
h1{font-family: Georgia,serif; font-size: xx-large}
|
|
|
|
"""
|
|
|
|
|
|
feeds = [(u'News', u'http://www.philly.com/philly_news.rss')]
|
|
|