|  05-16-2011, 11:15 AM | #1 | 
| Enthusiast  Posts: 37 Karma: 10 Join Date: Apr 2011 Device: none | 
				
				recipe for goodhousekeeping
			 
			
			this recipe is based on recipe for http://www.thedailygreen.com so credits should go to : Starson17 and schuster Code: class AdvancedUserRecipe1305547242(BasicNewsRecipe):
    title          = u'Good House Keeping'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets         = True
    use_embedded_content   = False
    remove_javascript      = True
    def print_version(self,url):
          segments = url.split('/') 
          printURL = '/'.join(segments[0:3]) + '/print-this/' + '/'.join(segments[4:])
          return printURL
    def preprocess_html(self, soup):
        for alink in soup.findAll('a'):
            if alink.string is not None:
               tstr = alink.string
               alink.replaceWith(tstr)
        return soup
    feeds  = [	(u'Recipes & Entertaining', u'http://www.goodhousekeeping.com/food/food-rss/?src=rss'),
	(u'Home & House', u'http://www.goodhousekeeping.com/home/home-rss/?src=rss'), 
	(u'Diet & Health', u'http://www.goodhousekeeping.com/health/health-rss/?src=rss'), 
	(u'Beauty & Style', u'http://www.goodhousekeeping.com/beauty/beauty-rss/?src=rss'), 
	(u'Family & Pets', u'http://www.goodhousekeeping.com/family/family-rss/?src=rss'), 
	(u'Saving Money', u'http://www.goodhousekeeping.com/money/money-rss/?src=rss'), 
	] | 
|   |   | 
|  05-16-2011, 04:33 PM | #2 | 
| Wizard            Posts: 4,004 Karma: 177841 Join Date: Dec 2009 Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T | |
|   |   | 
| Advert | |
|  | 
|  06-03-2012, 08:24 PM | #3 | 
| Zealot            Posts: 146 Karma: 620038 Join Date: Nov 2011 Location: USA Device: Kindle Paperwhite | 
			
			I noticed this recipe needs updated links.  Here's the page with the current links if someone is inclined to write the new recipe. Would just replacing the links above with the new links customize the recipe in calibre? | 
|   |   | 
|  | 
| 
 | 
|  Similar Threads | ||||
| 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 | marbs | Recipes | 0 | 11-24-2010 04:59 AM | 
| Recipe help | kool | Recipes | 3 | 10-22-2010 03:34 PM | 
| New recipe | kiklop74 | Recipes | 0 | 10-05-2010 04:41 PM | 
| New recipe | kiklop74 | Recipes | 0 | 10-01-2010 02:42 PM |