![]() |
#1 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2011
Device: sony PRS 650
|
![]()
Ciao tutti
aprofitto delle conoscenze degli esperti e chiedo un aiuto Non riesco a costruire la ricetta personalizzata per scaricare gli articoli da www.luogocomune.net Questi i dati: RSS feed: http://www.luogocomune.net/site/backend.php print version (an example): http://www.luogocomune.net/site/modu...p?storyid=2223 al posto di http://www.luogocomune.net/site/modu...p?storyid=2223 la mia ricetta 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') i principali problemi: 1) i tentativi odierni hanno prodotto un file epub di 49 pagine: il primo articolo inizia a pagina 7 ma solo con un link; l'articolo "vero" v da pag. 8 a pag. 16 ma è come una UNICA PAGINA e io posso leggere solo la prima pagina, cioè la 8. Il mio sony prs650 non può scrollare verso il basso (mentre il browser internoa calibre può e non fa capire il problema...) e quando a pag. 8 premo "pagina avanti" finisco direttamente a pg. 17! - da notare che la mia ricetta, dopo aver aggiunto "remove_attributes = ['style', 'font', 'width', 'height']", funziona in senso orizzontale ma non ancora in verticale 2) alcuni caratteri italiano non vengono riconosciuti (es. apostrofo ') e vengono sostituiti da ? Grazie per l'aiuto! ![]() Last edited by lorenzo2004; 05-05-2011 at 03:45 PM. |
![]() |
![]() |
![]() |
#2 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2011
Device: sony PRS 650
|
La mia richiesta è stata letta un sacco di volte ma nessuno ha risposto...
![]() Mi chiedo: - domanda troppo difficile...? - ho sbagliato qualcosa...? - ho ignorato regole del forum (senza saperlo)...? Qualsiasi risposta sarà apprezzata! ![]() |
![]() |
![]() |
![]() |
#3 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Not many read or reply in Italian. The recipe looks OK, but you will need to debug with print statements if it's failing. Check that you are getting the article and that the print_version is producing the correct url. Code:
print_version def (self, url): print 'url is: ', url print_url = url.replace('article.php', 'print.php') print 'print_url is: ', print_url return print_url The Italian characters problem is a character encoding issue. Search for "character encoding." I hope you can read this. I'm not in a position to test/fix your recipe myself. |
|
![]() |
![]() |
![]() |
#4 |
Junior Member
![]() Posts: 6
Karma: 10
Join Date: May 2011
Device: sony PRS 650
|
![]()
Thank you for your answer. The same question in (bad) english is here: https://www.mobileread.com/forums/sho...d.php?t=132086
I'll try and give a feedback. Please, note that i tested my output _with_ the calibre browser; the problem is that this browser can scroll pages above, a ebook-reader (I think: every ebook-reader) can't it. Regards |
![]() |
![]() |
![]() |
Tags |
calibre, italiano, luogocomune, receipe |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre don't work with the latest Microsoft .NET version | mikaelalind | Recipes | 0 | 01-22-2011 05:16 AM |
500 error accessing calibre.kovidgoyal.net/download_ubuntu | adamvert | Calibre | 2 | 03-24-2009 03:05 PM |
FLAG (Fanfiction.net Lightweight Automated Grabber) and Calibre? | malkie13 | Calibre | 1 | 02-10-2009 05:43 PM |
Dizionario Dictionary Inglese Italiano | Clemenseken | Other Books | 0 | 12-12-2007 04:52 AM |