View Single Post
Old 01-22-2012, 01:14 PM   #3
Divingduck
Wizard
Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.Divingduck ought to be getting tired of karma fortunes by now.
 
Posts: 1,166
Karma: 1410083
Join Date: Nov 2010
Location: Germany
Device: Sony PRS-650
@atlanique
You may look here in the forum at the sticky thread "re-usable code", post 14 from kiklop74: link. This will exlain and solve your problem.
Here is an example how to integrate it your RSS-Feed:
Spoiler:
Code:
__license__   = 'GPL v3'
__copyright__ = ''
'''
Fetch Feed Antiwar.com
'''

from calibre.web.feeds.recipes import BasicNewsRecipe
class Antiwar_com(BasicNewsRecipe):
    title          = u'Antiwar.com' # 2011-12-28 AGe
    description = '-Antiwar.com-'
    publisher = 'Antiwar.com'
    category = 'RSS-News, US'
    __author__ = 'Armin Geller' # 2012-01-22 AGe
    language = 'en'
    lang = 'en-US'
    encoding = 'utf-8'
    timefmt = ' [%a, %d %b %Y]'

    oldest_article = 7
    max_articles_per_feed = 50
    no_stylesheets = True
    auto_cleanup = True
    remove_javascript = True

    feeds = [
              (u'Latest Viewpoints - Antiwar.com', u'http://www.feed43.com/8330834560181458.xml'),

             ]

    def print_version(self, url):
          return self.browser.open_novisit(url).geturl() + '&pagewanted=print'

Last edited by Divingduck; 01-22-2012 at 01:17 PM.
Divingduck is offline   Reply With Quote