View Single Post
Old 04-03-2011, 03:29 PM   #1
louhike
Junior Member
louhike began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Apr 2011
Device: Kindle 3
Recipe for French website Developpez.com

Hi everyone.
I've made a recipe for the website www.developpez.com, one of the biggest french website about programming. Here's the code :
Code:
class AdvancedUserRecipe1301849956(BasicNewsRecipe):
    title          = u'Developpez.com'
    description = u'Toutes les news du site Developpez.com'
    publisher = u'Developpez.com'
    timefmt = ' [%a, %d %b, %Y]'
    oldest_article = 7
    max_articles_per_feed = 100
    no_stylesheets = True
    encoding = 'ISO-8859-1'
    language = 'fr_FR'
    remove_javascript = True
    keep_only_tags = [dict(name='div', attrs={'class':'content'})]

    feeds = [(u'Tous les articles', u'http://www.developpez.com/index/rss')]

    def get_cover_url(self):
        return 'http://javascript.developpez.com/template/images/logo.gif'
It works quite well, I hope it will be useful to anyone other than me.

Last edited by louhike; 04-03-2011 at 03:41 PM.
louhike is offline   Reply With Quote