View Single Post
Old 05-07-2010, 12:03 PM   #1897
smargo
Member
smargo began at the beginning.
 
Posts: 14
Karma: 10
Join Date: Aug 2007
Location: Switzerland
Device: Kindle Voyage, Kobo
Kommersant

OK, now it's generally working,
Code:
from calibre.web.feeds.news import BasicNewsRecipe
class KommersantRecipe(BasicNewsRecipe):
    title          = u'Kommersant'
    oldest_article = 7
    max_articles_per_feed = 100
    feeds          = [(u'Kommersant', u'http://feeds.kommersant.ru/RSS_Export/RU/daily.xml')]

    def print_version(self,url):
       segments = url.split('=')
       article_id = segments[1]
       newurl = 'http://www.kommersant.ru/doc.aspx?DocsID=' + article_id + '&print=true'
       return newurl
but when I read it on Kindle, pagination does not work. When I am on the first page and press "Next pages" the aricle is skipped to the last page. What can be the problem?
Thanks all!
smargo is offline