![]() |
#151 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
No.
That diary does not have rss feeds so writing recipe is more complicated. |
![]() |
![]() |
#152 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Cuban recipe pack.
In it you will find: Granma - in spanish juventud rebelde - in spanish juventud rebelde - in english |
![]() |
Advert | |
|
![]() |
#153 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Chilean recipe pack
In it you will find: El mercurio La Nacion La Segunda La Tercera La Cuarta All in spanish |
![]() |
![]() |
#154 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Brasilian recipe pack.
In it you will find: O globo Jornal Brasileiro O Estado de S. Paulo All in Portugese |
![]() |
![]() |
#155 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
New recipe for Montenegro daily newspaper "Vijesti" in serbian
|
![]() |
Advert | |
|
![]() |
#156 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Quote:
|
|
![]() |
![]() |
#157 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Spanish diary El Mundo
|
![]() |
![]() |
#158 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,981
Karma: 11862367
Join Date: Apr 2008
Device: Sony Reader PRS-T2
|
I created a script for The Australian newspaper (the only national daily broadsheet for Australia besides the Australian Financial Review) based on the one for The Daily Telegraph. It downloads OK however if someone could have a look at (it produces oversized LRFs)..
|
![]() |
![]() |
#159 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
By size you mean file size or number of pages? If it's file size it will likely be because of images, you can use preprocess_html to remove the offending images.
|
![]() |
![]() |
#160 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Here is the optimized recipe for www.theaustralian.news.com.au
|
![]() |
![]() |
#161 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Kovid,
I noticed that you remove --base-font-size option from all my recipes. Why? I do not like default font size in LRF which is 12pt because it is too big. |
![]() |
![]() |
#162 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,396
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Since changing font sizes on the reader with recipes often leads to a crash and reboot, it's better to err on the side of being too large than too small. Also, eventually the recipe system will allow the user to specify a base font size for all downloaded recipes, at which time these custom options will cause problems.
|
![]() |
![]() |
#163 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 100000
Join Date: Jan 2009
Location: New Zealand
Device: prs-t1, prs-650 to sell
|
Hi all, I'm working on setting up these feeds for full text (print versions):
New zealand news site Stuff http://www.stuff.co.nz/feeds/topstories.xml The Stuff site seems simple : def print_version(self, url): return url.replace('http://www.stuff.co.nz/', 'http://www.stuff.co.nz/print/') However when I run it the EPUB result appears to be the full HTML version (which the sony doesn't like) and not the print version. What should be changed for it to work? Quote:
I have a similar issue with the CIO new zealand site http://cio.co.nz/rss/cio.xml Also with this one, the "printer friendly" has fixed line length - is there python code to remove this? Gamespot seems simple, but I"m not sure what the right code is as "replace" doesn't seem appropriate - the print version just has "print=1" at the end of the URL. http://rss.gamespot.com/misc/rss/gam...es_reviews.xml |
|
![]() |
![]() |
#164 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
Code:
def print_version(self, url): raw_article, sep, unneeded = url.partition('?') return raw_article.replace('http://www.stuff.co.nz/', 'http://www.stuff.co.nz/print/') |
|
![]() |
![]() |
#165 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 90
Karma: 100000
Join Date: Jan 2009
Location: New Zealand
Device: prs-t1, prs-650 to sell
|
Hi thanks for the quick reply
the code I'm using now is class AdvancedUserRecipe1255817232(BasicNewsRecipe): title = u'Stu4543fwwwwf.co.nz' oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True feeds = [(u'top stories', u'http://www.stuff.co.nz/feeds/topstories.xml'), (u'Worldnews', u'http://www.stuff.co.nz/feeds/worldnews.xml'), (u'Music', u'http://www.stuff.co.nz/feeds/music.xml'), (u'Llifestyle', u'http://www.stuff.co.nz/feeds/lifestyle.xml'), (u'Sport', u'http://www.stuff.co.nz/feeds/sport.xml')] def print_version(self, url): raw_article, sep, unneeded = url.partition('?') return raw_article.replace('http://www.stuff.co.nz/', 'http://www.stuff.co.nz/print/') It still seems to be saving the full articles (which tend to crash the reader) instead of the print versions though.. Last edited by gregcd; 02-13-2009 at 04:23 PM. |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Custom column read ? | pchrist7 | Calibre | 2 | 10-04-2010 02:52 AM |
Archive for custom screensavers | sleeplessdave | Amazon Kindle | 1 | 07-07-2010 12:33 PM |
How to back up preferences and custom recipes? | greenapple | Calibre | 3 | 03-29-2010 05:08 AM |
Donations for Custom Recipes | ddavtian | Calibre | 5 | 01-23-2010 04:54 PM |
Help understanding custom recipes | andersent | Calibre | 0 | 12-17-2009 02:37 PM |