View Single Post
Old 03-17-2012, 01:46 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
fhm update 17/3/12

cover hopefully is up to date.
removed top 10 (doesn't update regulary enough)
added "upgrade"
Corrected gaming articles/titles not matching (feed43 error)

Does anyone apart from myself use this recipe? Just curious

Spoiler:


Code:
class AdvancedUserRecipe1325006965(BasicNewsRecipe):
    title          = u'FHM UK'
    description = 'Good News for Men'
    cover_url = 'http://www.greatmagazines.co.uk/covers/large/w197/current/fhm.jpg'
    #   cover_url = 'http://profile.ak.fbcdn.net/hprofile-ak-snc4/373529_38324934806_64930243_n.jpg'
    masthead_url = 'http://www.fhm.com/App_Resources/Images/Site/re-design/logo.gif'
    __author__ = 'Dave Asbury'
    # last updated 17/3/12
    language = 'en_GB'
    oldest_article = 28
    max_articles_per_feed = 12
    remove_empty_feeds = True
    no_stylesheets = True
    #auto_cleanup = True
    #articles_are_obfuscated = True
    keep_only_tags = [
	           dict(name='h1'),
	           dict(name='img',attrs={'id' : 'ctl00_Body_imgMainImage'}),
	           dict(name='div',attrs={'id' : ['articleLeft']}),
                               dict(name='div',attrs={'class' : ['imagesCenterArticle','containerCenterArticle','articleBody']}),
	                      
		] 

    #remove_tags    = [
                              #dict(attrs={'class' : ['player']}),

	#]
    feeds          = [
	(u'From the Homepage',u'http://feed43.com/8053226782885416.xml'),
	(u'Funny - The Very Best Of The Internet',u'http://feed43.com/4538510106331565.xml'),
                           (u'Upgrade',u'http://feed43.com/0877305847443234.xml'),
	#(u'The Final Countdown', u'http://feed43.com/3576106158530118.xml'),
	#(u'Gaming',u'http://feed43.com/0755006465351035.xml'),
        	(u'Gaming',u'http://feed43.com/6537162612465672.xml'),
                           ]
scissors is offline   Reply With Quote