![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Recipe works when mocked up as Python file, fails when converted to Recipe | ode | Recipes | 7 | 09-04-2011 04:57 AM |
New Recipe | UtahJames | Recipes | 3 | 04-18-2011 08:02 PM |
New Recipe | UtahJames | Recipes | 1 | 04-11-2011 04:15 PM |
I need some help with a recipe | jefferson_frantz | Recipes | 14 | 11-22-2010 02:06 PM |
New recipe | kiklop74 | Recipes | 0 | 10-01-2010 02:42 PM |