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

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-30 12:49:41 UTC
  • mfrom: (1.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20090730124941-qjdsmri25zt8zocn
Tags: 0.6.3+dfsg-0ubuntu1
* New upstream release. Please see http://calibre.kovidgoyal.net/new_in_6/
  for the list of new features and changes.
* remove_postinstall.patch: Update for new version.
* build_debug.patch: Does not apply any more, disable for now. Might not be
  necessary any more.
* debian/copyright: Fix reference to versionless GPL.
* debian/rules: Drop obsolete dh_desktop call.
* debian/rules: Add workaround for weird Python 2.6 setuptools behaviour of
  putting compiled .so files into src/calibre/plugins/calibre/plugins
  instead of src/calibre/plugins.
* debian/rules: Drop hal fdi moving, new upstream version does not use hal
  any more. Drop hal dependency, too.
* debian/rules: Install udev rules into /lib/udev/rules.d.
* Add debian/calibre.preinst: Remove unmodified
  /etc/udev/rules.d/95-calibre.rules on upgrade.
* debian/control: Bump Python dependencies to 2.6, since upstream needs
  it now.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
class MoneyNews(BasicNewsRecipe):
12
12
    title                 = 'Moneynews.com'
13
13
    __author__            = 'Darko Miletic'
14
 
    description           = 'Financial news worldwide'  
 
14
    description           = 'Financial news worldwide'
15
15
    publisher             = 'moneynews.com'
16
 
    category              = 'news, finances, USA, business'    
 
16
    language              = _('English')
 
17
    category              = 'news, finances, USA, business'
17
18
    oldest_article        = 2
18
19
    max_articles_per_feed = 100
19
20
    no_stylesheets        = True
20
21
    use_embedded_content  = False
21
22
    encoding              = 'cp1252'
22
 
    
 
23
 
23
24
    html2lrf_options = [
24
25
                          '--comment', description
25
26
                        , '--category', category
26
27
                        , '--publisher', publisher
27
28
                        , '--ignore-tables'
28
29
                        ]
29
 
    
30
 
    html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nlinearize_tables=True' 
31
 
                            
32
 
    feeds = [ 
 
30
 
 
31
    html2epub_options = 'publisher="' + publisher + '"\ncomments="' + description + '"\ntags="' + category + '"\nlinearize_tables=True'
 
32
 
 
33
    feeds = [
33
34
              (u'Street Talk'          , u'http://moneynews.newsmax.com/xml/streettalk.xml'  )
34
35
             ,(u'Finance News'         , u'http://moneynews.newsmax.com/xml/FinanceNews.xml' )
35
36
             ,(u'Economy'              , u'http://moneynews.newsmax.com/xml/economy.xml'     )
38
39
             ,(u'Investing & Analysis' , u'http://moneynews.newsmax.com/xml/investing.xml'   )
39
40
            ]
40
41
 
41
 
            
 
42
 
42
43
    keep_only_tags = [dict(name='table', attrs={'class':'copy'})]
43
 
    
 
44
 
44
45
    remove_tags = [
45
46
                     dict(name='td'   , attrs={'id':'article_fontsize'})
46
47
                    ,dict(name='table', attrs={'id':'toolbox'         })
47
48
                    ,dict(name='tr'   , attrs={'id':'noprint3'        })
48
49
                  ]
49
 
                
 
 
b'\\ No newline at end of file'
 
50