__license__ = 'GPL v3' __copyright__ = '2010, jolo' ''' azrepublic.com ''' from calibre.web.feeds.recipes import BasicNewsRecipe class AdvancedUserRecipe1307301031(BasicNewsRecipe): title = u'AZRepublic' __author__ = 'Jim Olo' language = 'en' description = "The Arizona Republic is Arizona's leading provider of news and information, and has published a daily newspaper in Phoenix for more than 110 years" # noqa publisher = 'AZRepublic/AZCentral' masthead_url = 'http://freedom2t.com/wp-content/uploads/press_az_republic_v2.gif' cover_url = 'http://www.valleyleadership.org/Common/Img/2line4c_AZRepublic%20with%20azcentral%20logo.jpg' category = 'news, politics, USA, AZ, Arizona' oldest_article = 7 max_articles_per_feed = 100 remove_empty_feeds = True no_stylesheets = True remove_javascript = True # extra_css = '.headline {font-size: medium;} \n .fact { padding-top: 10pt }' extra_css = ' body{ font-family: Verdana,Helvetica,Arial,sans-serif } .headline {font-size: medium} .introduction{font-weight: bold} .story-feature{display: block; padding: 0; border: 1px solid; width: 40%; font-size: small} .story-feature h2{text-align: center; text-transform: uppercase} ' # noqa remove_attributes = ['width', 'height', 'h2', 'subHeadline', 'style'] remove_tags = [ dict(name='div', attrs={ 'id': ['slidingBillboard', 'top728x90', 'subindex-header', 'topSearch']}), dict(name='div', attrs={ 'id': ['simplesearch', 'azcLoginBox', 'azcLoginBoxInner', 'topNav']}), dict(name='div', attrs={ 'id': ['carsDrop', 'homesDrop', 'rentalsDrop', 'classifiedDrop']}), dict(name='div', attrs={'id': ['nav', 'mp', 'subnav', 'jobsDrop']}), dict(name='h6', attrs={'class': ['section-header']}), dict(name='a', attrs={'href': ['#comments']}), dict(name='div', attrs={ 'class': ['articletools clearfix', 'floatRight']}), dict(name='div', attrs={ 'id': ['fbFrame', 'ob', 'storyComments', 'storyGoogleAdBox']}), dict(name='div', attrs={ 'id': ['storyTopHomes', 'openRight', 'footerwrap', 'copyright']}), dict(name='div', attrs={ 'id': ['blogsHed', 'blog_comments', 'blogByline', 'blogTopics']}), dict(name='div', attrs={ 'id': ['membersRightMain', 'dealsfooter', 'azrTopHed', 'azrRightCol']}), dict(name='div', attrs={'id': ['ttdHeader', 'ttdTimeWeather']}), dict(name='div', attrs={ 'id': ['membersRightMain', 'deals-header-wrap']}), dict(name='div', attrs={ 'id': ['todoTopSearchBar', 'byline clearfix', 'subdex-topnav']}), dict(name='h1', attrs={'id': ['SEOtext']}), dict(name='table', attrs={'class': ['ap-mediabox-table']}), dict(name='p', attrs={'class': ['ap_para']}), dict(name='span', attrs={'class': ['source-org vcard', 'org fn']}), dict(name='a', attrs={ 'href': ['http://hosted2.ap.org/APDEFAULT/privacy']}), dict(name='a', attrs={ 'href': ['http://hosted2.ap.org/APDEFAULT/terms']}), dict(name='div', attrs={'id': ['onespot_nextclick']}), ] feeds = [ ('Local', 'http://rssfeeds.azcentral.com/phoenix/local'), ('Nation', 'http://rssfeeds.azcentral.com/phoenix/nation'), ('Business', 'http://rssfeeds.azcentral.com/phoenix/business'), ('Politics', 'http://rssfeeds.azcentral.com/phoenix/politics'), ('Fact check', 'http://rssfeeds.azcentral.com/phoenix/fact-check'), ('Opinions', 'http://rssfeeds.azcentral.com/phoenix/opinions'), ('Things to Do', 'http://rssfeeds.azcentral.com/phoenix/thingstodo'), ('Events', 'http://rssfeeds.azcentral.com/phoenix/events'), ('Dining', 'http://rssfeeds.azcentral.com/phoenix/dining'), ('Movies & TV', 'http://rssfeeds.azcentral.com/phoenix/moviesandtv'), ('Kids', 'http://rssfeeds.azcentral.com/phoenix/kids'), ('Arts', 'http://rssfeeds.azcentral.com/phoenix/arts'), ('Music', 'http://rssfeeds.azcentral.com/phoenix/music'), ('Celebrities', 'http://rssfeeds.azcentral.com/phoenix/celebrities'), ('Travel & Explore', 'http://rssfeeds.azcentral.com/phoenix/travelandexplore'), ('Arizona History', 'http://rssfeeds.azcentral.com/phoenix/az-history'), ('Sports', 'http://rssfeeds.azcentral.com/phoenix/sports'), ('Suns', 'http://rssfeeds.azcentral.com/phoenix/suns'), ('Diamondbacks', 'http://rssfeeds.azcentral.com/phoenix/diamondbacks'), ('Coyotes', 'http://rssfeeds.azcentral.com/phoenix/coyotes'), ('ASU', 'http://rssfeeds.azcentral.com/phoenix/asu'), ('UA', 'http://rssfeeds.azcentral.com/phoenix/ua'), ('High School Sports', 'http://rssfeeds.azcentral.com/high-school-sports'), ('Chandler', 'http://rssfeeds.azcentral.com/phoenix/chandler'), ('Gilbert', 'http://rssfeeds.azcentral.com/phoenix/gilbert'), ('Glendale & Peoria', 'http://rssfeeds.azcentral.com/phoenix/glendaleandpeoria'), ('Mesa', 'http://rssfeeds.azcentral.com/phoenix/mesa'), ('Phoenix', 'http://rssfeeds.azcentral.com/phoenix/phoenix'), ('Scottsdale', 'http://rssfeeds.azcentral.com/phoenix/scottsdale'), ('SW Valley', 'http://rssfeeds.azcentral.com/phoenix/swvalley'), ('Suprise', 'http://rssfeeds.azcentral.com/phoenix/surprise'), ('Tempe & Ahwatukee', 'http://rssfeeds.azcentral.com/phoenix/tempe'), ]