View Single Post
Old 10-06-2010, 06:33 AM   #1
bucsie
Connoisseur
bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.
 
Posts: 72
Karma: 674766
Join Date: Sep 2010
Device: Kindle
recipe for gsp.ro

a recipe for Romanian largest sports newspaper
Spoiler:
Code:
class AdvancedUserRecipe1286351181(BasicNewsRecipe):
    title          = u'gsp.ro'
    oldest_article = 2
    max_articles_per_feed = 100
    language='ro'
    cover_url ='http://www.gsp.ro/images/sigla_rosu.jpg'
    
    remove_tags = [
                       dict(name='div', attrs={'class':['related_articles', 'articol_noteaza straight_line dotted_line_top', 'comentarii','mai_multe_articole']}),
                       dict(name='div', attrs={'id':'icons'})
                        ]
    remove_tags_after = dict(name='div', attrs={'id':'adoceanintactrovccmgpmnyt'})

    feeds          = [(u'toate stirile', u'http://www.gsp.ro/index.php?section=section&screen=rss')]

    def print_version(self, url):
         return 'http://www1.gsp.ro/print/' + url[(url.rindex('/')+1):]
bucsie is offline   Reply With Quote