View Single Post
Old 08-11-2009, 06:00 PM   #1
phkoech
Member
phkoech began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jul 2009
Device: Sony PRS-505
Recipe not working

Hello everybody,
I'm trying to grab french cooking from this type of page : http://www.marmiton.org/Recettes/Rec...ses_45471.aspx, but the "comment" section of the page (from "les commentaires des internautes" to "Bel effet dans l'assiette et excellent.") doesn't appear in the book produced by Calibre (via the News system).
Do you have any idea about how to succeed grabing this section ?

My recipe :
Code:
class Recettes(BasicNewsRecipe):
    title          = 'RecettesPrint'
    __author__ = 'Kek <kek.fr>'
    description = 'Recettes'
    oldest_article = 3
    language = _('French')
    max_articles_per_feed = 50
    no_stylesheets = True

    html2lrf_options = ['--base-font-size', '10']

    feeds =  [
             ('Recette Top', 'url from the uml feed'),
             ]
    
    def print_version(self, url):
        if 'marmiton.org/Recettes/' in url:
            url = re.sub('Recettes/Recette', 'Recettes/Recette-Impression', url)
            return url
phkoech is offline   Reply With Quote