~ubuntu-branches/debian/wheezy/calibre/wheezy

« back to all changes in this revision

Viewing changes to src/calibre/web/feeds/recipes/recipe_de_standaard.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-09-18 01:18:18 UTC
  • mto: (29.1.1 sid)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20090918011818-2whiyzgvx59c7b7t
Tags: upstream-0.6.12+dfsg
ImportĀ upstreamĀ versionĀ 0.6.12+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
class DeStandaard(BasicNewsRecipe):
10
10
    title                 = u'De Standaard'
11
11
    __author__            = u'Darko Miletic'
12
 
    language = _('Dutch')
 
12
    language = 'nl'
 
13
 
13
14
    description           = u'News from Belgium'    
14
15
    oldest_article        = 7
15
16
    max_articles_per_feed = 100
16
17
    no_stylesheets        = True
17
18
    use_embedded_content  = False
18
 
 
19
 
    keep_only_tags    = [dict(name='div' , attrs={'id':'_parts_midContainer_div'})]
20
 
    remove_tags_after  = dict(name='h3', attrs={'title':'Binnenland'})
21
 
    remove_tags = [
22
 
                     dict(name='h3'  , attrs={'title':'Binnenland'   })
23
 
                    ,dict(name='p'   , attrs={'class':'by'           })
24
 
                    ,dict(name='div' , attrs={'class':'articlesright'})
25
 
                    ,dict(name='a'   , attrs={'class':'help'         })
26
 
                    ,dict(name='a'   , attrs={'class':'archive'      })
27
 
                    ,dict(name='a'   , attrs={'class':'print'        })
28
 
                    ,dict(name='a'   , attrs={'class':'email'        })
29
 
                  ]
 
19
    encoding              = 'utf-8'
 
20
        
 
21
    keep_only_tags    = [dict(name='div' , attrs={'id':['intro','continued']})]
30
22
    
31
 
    feeds          = [  
32
 
                       (u'De Standaard Online', u'http://feeds.feedburner.com/dso-front')
33
 
                     ]
 
23
    feeds          = [(u'De Standaard Online', u'http://feeds.feedburner.com/dso-front')]
 
24
 
 
25
                                         
 
26
    def get_article_url(self, article):
 
27
        return article.get('guid',  None)
 
28
 
 
29
    def print_version(self, url):
 
30
        return url.replace('/Detail.aspx?','/PrintArtikel.aspx?')