Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 06-11-2011, 05:44 AM   #1
scissors
Addict
scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.scissors ought to be getting tired of karma fortunes by now.
 
Posts: 206
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
UK Daily Mirror Recipe.

Daily Mirror Recipe

An update to the first attempt in thread

http://www.mobileread.com/forums/sho...d.php?t=134076.

Just place a '#' in front of any feeds you don't want
========================================
Code:
class AdvancedUserRecipe1306061239(BasicNewsRecipe):
    title          = u'The Daily Mirror'
    description = 'News as provide by The Daily Mirror -UK'

    author = 'Dave Asbury'
    
    cover_url = 'http://yookeo.com/screens/m/i/mirror.co.uk.jpg'

    masthead_url = 'http://www.nmauk.co.uk/nma/images/daily_mirror.gif'
    

    oldest_article = 1
    max_articles_per_feed = 100
    remove_empty_feeds = True
    remove_javascript     = True
    no_stylesheets = True
    
    keep_only_tags = [
	dict(name='h1'),
	dict(attrs={'class':['article-attr']}),
	dict(name='div', attrs={'class' : [ 'article-body', 'crosshead']})
	
		
	]

    remove_tags = [
	       dict(name='div', attrs={'class' : ['caption', 'article-resize']}),
	       dict( attrs={'class':'append-html'})
	       ]
    



    feeds          = [

	    (u'News', u'http://www.mirror.co.uk/news/rss.xml')
	    ,(u'Tech News', u'http://www.mirror.co.uk/news/technology/rss.xml')
	    ,(u'Weird World','http://www.mirror.co.uk/news/weird-world/rss.xml')
	    ,(u'Film Gossip','http://www.mirror.co.uk/celebs/film/rss.xml')
	    ,(u'Music News','http://www.mirror.co.uk/celebs/music/rss.xml') 
	    ,(u'Celebs and Tv Gossip','http://www.mirror.co.uk/celebs/tv/rss.xml')
	    ,(u'Sport','http://www.mirror.co.uk/sport/rss.xml')
	     ,(u'Life Style','http://www.mirror.co.uk/life-style/rss.xml')
	     ,(u'Advice','http://www.mirror.co.uk/advice/rss.xml')
             ,(u'Travel','http://www.mirror.co.uk/advice/travel/rss.xml')

           # example of commented out feed not needed ,(u'Travel','http://www.mirror.co.uk/advice/travel/rss.xml')
  ]

Last edited by scissors; 06-11-2011 at 05:58 AM.
scissors is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Improved recipe - United Daily (Taiwan) tylau0 Recipes 1 05-17-2011 12:30 PM
Recipe Request: Norton cybercrime daily index trott3r Recipes 0 03-17-2011 12:55 PM
Custom Daily News Recipe mean_gene Recipes 0 12-27-2010 01:07 PM
Recipe Request for Science Daily girlperson1 Calibre 1 12-20-2008 04:54 PM
Recipe for Sydney Daily Telegraph AprilHare Calibre 11 10-06-2008 05:31 PM


All times are GMT -4. The time now is 09:44 PM.


MobileRead.com is a privately owned, operated and funded community.