View Single Post
Old 09-05-2010, 07:08 PM   #2648
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Starson17,
I know how you enjoy the food recipe recipes so here is one you might enjoy. You might wanna modify the formatting a little to get rid of the two || (i can't figure out how to do it even with a findall. And also the little thumbnail gets put next to the start of the words where a <br> would be better after the image (another thing i'm not sure how to do)..

here is what i have though enjoy:
Spoiler:

BUCKMASTERS RECIPES
Code:
from calibre.web.feeds.news import BasicNewsRecipe

class AdvancedUserRecipe1282101454(BasicNewsRecipe):
    title = 'BuckMasters In The Kitchen'
    language = 'en'
    __author__ = 'TonytheBookworm'
    description = 'Learn how to cook all those outdoor varments'
    publisher = 'BuckMasters.com'
    category = 'food,cooking,recipes'
    oldest_article = 365
    max_articles_per_feed = 100
    conversion_options = {'linearize_tables' : True}
    #no_stylesheets = True
    #extra_css = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt }'
    masthead_url = 'http://www.buckmasters.com/Portals/_default/Skins/BM_10/images/header_bg.jpg'
    keep_only_tags    = [
                         dict(name='table', attrs={'class':['containermaster_black']})
                        ]
    remove_tags = [dict(attrs={'class':['MenuTopSelected','MenuTop']})]
    remove_tags_after = [dict(name='div', attrs={'align':['left']})]
    feeds          = [
                      ('Recipes', 'http://www.buckmasters.com/DesktopModules/DnnForge%20-%20NewsArticles/RSS.aspx?TabID=292&ModuleID=658&MaxCount=25'),
                      
                    ]
TonytheBookworm is offline