~ubuntu-branches/ubuntu/karmic/calibre/karmic-updates

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-06-06 17:18:02 UTC
  • mfrom: (1.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090606171802-fcu5dzgkxygn79y6
Tags: 0.5.14+dfsg-1
* New upstream release.
* debian/rules, get-orig-source: Do not unpack newly generated orig tarball
  if we don't have unpackaged upstream sources in the tree (such as when
  building with bzr-buildpackage).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
__license__   = 'GPL v3'
 
2
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
 
3
 
 
4
'''
 
5
Fetch elektrolese.
 
6
'''
 
7
 
 
8
from calibre.web.feeds.news import BasicNewsRecipe
 
9
 
 
10
 
 
11
class elektrolese(BasicNewsRecipe):
 
12
 
 
13
    title = u'elektrolese'
 
14
    description = 'News about electronic publishing'
 
15
    __author__ = 'Oliver Niesner'
 
16
    use_embedded_content   = False
 
17
    timefmt = ' [%a %d %b %Y]'
 
18
    language = _('German')
 
19
    oldest_article = 14
 
20
    max_articles_per_feed = 50
 
21
    no_stylesheets = True
 
22
    #html2epub_options = 'linearize_tables = True\nbase_font_size2=14'
 
23
    encoding = 'utf-8'
 
24
 
 
25
 
 
26
    remove_tags_after = [dict(id='comments')]
 
27
    filter_regexps = [r'ad\.doubleclick\.net']
 
28
 
 
29
    remove_tags = [dict(name='div', attrs={'class':'bannerSuperBanner'}),
 
30
                   dict(id='comments')]
 
31
 
 
32
 
 
33
 
 
34
    feeds =  [ (u'electrolese', u'http://elektrolese.blogspot.com/feeds/posts/default?alt=rss') ]
 
35