View Single Post
Old 05-05-2011, 04:26 AM   #1
lorenzo2004
Junior Member
lorenzo2004 began at the beginning.
 
Posts: 6
Karma: 10
Join Date: May 2011
Device: sony PRS 650
Smile Help request with italian magazine

Hi to all

In the "What's a News Recipe?" section, I have read "Start a thread and feel free to ask for someone to write it for you. Lots of recipe gurus hang out here. "

I use calibre in order to collect my preferred articles from blogs and websites I read. I have read the online manual and specially this page: http://calibre-ebook.com/user_manual/news.html but I'm new to python and, even if all works good with blogger blogs, I have trouble with this online magazine: www.luogocomune.net

I provide as much help as possible:

RSS feed: http://www.luogocomune.net/site/backend.php

print version (an example): http://www.luogocomune.net/site/modu...p?storyid=2223
instead of
http://www.luogocomune.net/site/modu...p?storyid=2223

my receipe:
class LuogoComune(BasicNewsRecipe):
title = u'LuogoComune'
oldest_article = 180
max_articles_per_feed = 100
remove_attributes = ['style', 'font', 'width', 'height']
language = 'it'
feeds = [(u'LuogoComune', u'http://www.luogocomune.net/site/backend.php/')]
def print_version(self, url):
return url.replace('article.php', 'print.php')

my (biggest) problems:

1) today's attempts give me a 49 page epub file; 1. article begins on page 7 only with a link; the "true" article begins on page 8 to page 16 but pages 8-16 are like a UNIQUE PAGE and I can read only the "first" page, i.e, page 8; my sony prs650 can't scroll above (calibre browser can it), when I press "page >" I see page 17! - please note that my recipe, after I added "remove_attributes = ['style', 'font', 'width', 'height']", gives a right output in width but not in height

2) some italian charactes aren't recognized (for example the ' char, like in "aren't")

Excuse my bad english and thanks for helping
lorenzo2004 is offline   Reply With Quote