Thread: NME recipe
View Single Post
Old 06-10-2011, 02:49 PM   #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: 241
Karma: 1001369
Join Date: Sep 2010
Device: prs300, kindle keyboard 3g
NME recipe

New Musical Express Magazine - not perfect but seems to get news and blogs.

================================================== =====

Code:
class AdvancedUserRecipe1306061239(BasicNewsRecipe):
    title          = u'New Musical Express Magazine'
    author = 'Dave Asbury'
    description = 'Music News from the popular UK music magazine'
    remove_empty_feeds = True
    remove_javascript     = True
    no_stylesheets = True
    oldest_article = 7
    max_articles_per_feed = 100
    cover_url = 'http://tawanda3000.files.wordpress.com/2011/02/nme-logo.jpg'

    remove_tags = [
	dict( attrs={'class':'clear_icons'}),
	    dict( attrs={'class':'share_links'}),
                        dict( attrs={'id':'right_panel'}),
	    dict( attrs={'class':'today box'})

]	

    keep_only_tags = [

	dict(name='h1'),
	#dict(name='h3'),
	dict(attrs={'class' :  'BText'}),
	dict(attrs={'class' :  'Bmore'}),
	dict(attrs={'class' : 'bPosts'}),
	dict(attrs={'class' :  'text'}),
	dict(attrs={'id' :  'article_gallery'}),
	dict(attrs={'class' :  'article_text'})
]


	         

    feeds          = [
	(u'NME News', u'http://feeds2.feedburner.com/nmecom/rss/newsxml'),
	(u'Reviews', u'http://feeds2.feedburner.com/nme/SdML'),
	(u'Blogs', u'http://www.nme.com/blog/index.php?blog=140&tempskin=_rss2'),
	
	]

Last edited by scissors; 06-18-2011 at 03:36 AM.
scissors is offline   Reply With Quote