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

« back to all changes in this revision

Viewing changes to src/calibre/ebooks/lrf/web/profiles/newsweek.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:
1
 
__license__   = 'GPL v3'
2
 
__copyright__ = '2008, Kovid Goyal <kovid at kovidgoyal.net>'
3
 
'''
4
 
Profile to download Newsweek
5
 
'''
6
 
from calibre.ebooks.lrf.web.profiles import DefaultProfile
7
 
 
8
 
class Newsweek(DefaultProfile):
9
 
    
10
 
    title = 'Newsweek'
11
 
    max_recursions = 2
12
 
    timefmt  = ' [%d %b %Y]'
13
 
    html_description = True
14
 
    oldest_article        = 15
15
 
    
16
 
        
17
 
    def print_version(self, url):
18
 
        if not url.endswith('/'):
19
 
            url += '/'
20
 
        return url + 'output/print'
21
 
    
22
 
    def get_feeds(self):
23
 
        return [
24
 
             ('Top News', 'http://feeds.newsweek.com/newsweek/TopNews',),
25
 
             ('Periscope', 'http://feeds.newsweek.com/newsweek/periscope'),
26
 
             ('Politics', 'http://feeds.newsweek.com/headlines/politics'),
27
 
             ('Health', 'http://feeds.newsweek.com/headlines/health'),
28
 
             ('Business', 'http://feeds.newsweek.com/headlines/business'),
29
 
             ('Science and Technology', 'http://feeds.newsweek.com/headlines/technology/science'),
30
 
             ('National News', 'http://feeds.newsweek.com/newsweek/NationalNews'),
31
 
             ('World News', 'http://feeds.newsweek.com/newsweek/WorldNews'),
32
 
             ('Iraq', 'http://feeds.newsweek.com/newsweek/iraq'),
33
 
             ('Society', 'http://feeds.newsweek.com/newsweek/society'),
34
 
             ('Entertainment', 'http://feeds.newsweek.com/newsweek/entertainment'),
35
 
             ]
36
 
        
37
 
        
 
 
b'\\ No newline at end of file'