![]() |
#676 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2009
Location: Philadelphia
Device: PRS-505
|
Any chance of philly.com?
|
![]() |
![]() |
#677 |
Comparer of the Ephemeris
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,496
Karma: 424697
Join Date: Mar 2009
Device: iPad
|
Gomes,
There are RSS feeds in each section of philly.com. Follow the directions to create a custom feed, then ask for assistance if you get stuck. It's actually pretty simple. G |
![]() |
![]() |
#678 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2009
Location: Philadelphia
Device: PRS-505
|
Thanks - I'll mess around with it tonight...
|
![]() |
![]() |
#679 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
the recipe is fine. This is calibre gui error. if you execute recipe from command line like this :
Code:
ebook-convert livemint.recipe livemint.epub I will report this in calibre trac. |
![]() |
![]() |
#680 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
New recipe for The Edge Singapore:
|
![]() |
![]() |
#681 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: May 2009
Device: KindleDX
|
Thank you!
|
![]() |
![]() |
#682 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Aug 2009
Device: PRS-700
|
I'm having trouble parsing my local newspaper feed, it's able to retrieve the articles but when I open the epub each article page is blank.
In the log it shows that once it gets to "parsing all content..." all the referenced files aren't found. ex "Referenced file 'feed_0/article_23/PrintArticle.aspx%3fe%3d1715420' not found" and so on for each article. I've attached the log if that's more helpful. Also this is what I have for the recipe: class AdvancedUserRecipe1251250978(BasicNewsRecipe): title = u'Intelligencer' oldest_article = 7 no_stylesheets = True max_articles_per_feed = 100 feeds = [(u'Recent Local News', u'http://www.intelligencer.ca/rss')] def print_version(self, url): turl = url.replace('ArticleDisplay', 'PrintArticle') return turl Any help would be appreciated, thanks! edit: I was able to fix the problem by adding in the following: keep_only_tags = [dict(id=['ctl00_ContentPlaceHolder1_FormView1'])] Last edited by indole; 08-26-2009 at 09:51 PM. |
![]() |
![]() |
#683 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
The problem is within calibre. For some unknown reason the span tag that contains entire article is emptied of content and content is moved below span tag on the same level.
This is the recipe that works well: |
![]() |
![]() |
#684 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Aug 2009
Device: PRS-700
|
Thanks! I was having trouble with my recipe and it not displaying properly on my reader.
|
![]() |
![]() |
#685 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Apr 2009
Device: kindle 2
|
india today
Can I request a recipe for India Today?
http://indiatoday.intoday.in/ |
![]() |
![]() |
#686 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Aug 2009
Device: PRS500
|
Hello, can i please request a recipe for following two?
Het Laatste Nieuws http://www.hln.be/hln/nl/1441/rss/in...rssFeeds.dhtml Netties http://www.netties.be/v10/netties_rss.php thanks in advance |
![]() |
![]() |
#687 |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: May 2009
Device: PRS-505
|
Hi, I'm having trouble with my recipe for the leading Swiss newspaper "Le Temps" (http://www.letemps.ch). The recipe is as follows:
Code:
class AdvancedUserRecipe1243078936(BasicNewsRecipe): title = u'Le Temps' oldest_article = 7 max_articles_per_feed = 100 no_stylesheets = True remove_tags = [dict(name='div', attrs={'id':'footer'})] remove_tags = [dict(name='div', attrs={'class':'box links'})] remove_tags = [dict(name='script')] extra_css = '.heading {font-size: 13px; line-height: 15px; margin: 20px 0;} \n h2 {font-size: 24px; line-height: 25px; margin-bottom: 14px;} \n .author {font-size: 11px; margin: 0 0 5px 0;} \n .lead {font-weight: 700; margin: 10px 0;} \n p {margin: 0 0 10px 0;}' feeds = [ ('Actualité', 'http://www.letemps.ch/rss/site/'), ('Monde', 'http://www.letemps.ch/rss/site/actualite/monde'), ('Suisse & Régions', 'http://www.letemps.ch/rss/site/actualite/suisse_regions'), ('Sciences & Environnement', 'http://www.letemps.ch/rss/site/actualite/sciences_environnement'), ('Société', 'http://www.letemps.ch/rss/site/actualite/societe'), ('Economie & Finance', 'http://www.letemps.ch/rss/site/economie_finance'), ('Economie & Finance - Finance', 'http://www.letemps.ch/rss/site/economie_finance/finance'), ('Economie & Finance - Fonds de placement', 'http://www.letemps.ch/rss/site/economie_finance/fonds_placement'), ('Economie & Finance - Carrières', 'http://www.letemps.ch/rss/site/economie_finance/carrieres'), ('Culture', 'http://www.letemps.ch/rss/site/culture'), ('Culture - Cinéma', 'http://www.letemps.ch/rss/site/culture/cinema'), ('Culture - Musiques', 'http://www.letemps.ch/rss/site/culture/musiques'), ('Culture - Scènes', 'http://www.letemps.ch/rss/site/culture/scenes'), ('Culture - Arts plastiques', 'http://www.letemps.ch/rss/site/culture/arts_plastiques'), ('Livres', 'http://www.letemps.ch/rss/site/culture/livres'), ('Opinions', 'http://www.letemps.ch/rss/site/opinions'), ('Opinions - Editoriaux', 'http://www.letemps.ch/rss/site/opinions/editoriaux'), ('Opinions - Invités', 'http://www.letemps.ch/rss/site/opinions/invites'), ('Opinions - Chroniques', 'http://www.letemps.ch/rss/site/opinions/chroniques'), ('LifeStyle', 'http://www.letemps.ch/rss/site/lifestyle'), ('LifeStyle - Luxe', 'http://www.letemps.ch/rss/site/lifestyle/luxe'), ('LifeStyle - Horlogerie & Joaillerie', 'http://www.letemps.ch/rss/site/lifestyle/horlogerie_joaillerie'), ('LifeStyle - Design', 'http://www.letemps.ch/rss/site/lifestyle/design'), ('LifeStyle - Voyages', 'http://www.letemps.ch/rss/site/lifestyle/voyages'), ('LifeStyle - Gastronomie', 'http://www.letemps.ch/rss/site/lifestyle/gastronomie'), ('LifeStyle - Architecture & Immobilier', 'http://www.letemps.ch/rss/site/lifestyle/architecture_immobilier'), ('LifeStyle - Automobile', 'http://www.letemps.ch/rss/site/lifestyle/automobile'), ('Sports', 'http://www.letemps.ch/rss/site/actualite/sports'), ] def print_version(self, url): return url.replace('Page', 'Facet/print') Code:
ERROR: Conversion Error: <b>Failed</b>: Fetch news from Le Temps Fetch news from Le Temps InputFormatPlugin: Recipe Input running Traceback (most recent call last): File "worker.py", line 103, in <module> File "worker.py", line 90, in main File "calibre\gui2\convert\gui_conversion.pyo", line 19, in gui_convert File "calibre\ebooks\conversion\plumber.pyo", line 717, in run File "calibre\customize\conversion.pyo", line 208, in __call__ File "calibre\web\feeds\input.pyo", line 57, in convert ValueError: u'C:\\Program Files\\calibre0.6\\Le Temps.recipe' is not a valid recipe file or builtin recipe I submitted a ticket about it, http://calibre.kovidgoyal.net/ticket/2683, but unfortunately I do not understand the reply. |
![]() |
![]() |
#688 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
In your recipe you have extra_css like this:
Code:
extra_css = ' <css stuff> \n <css stuff> ' |
![]() |
![]() |
#689 |
Enthusiast
![]() Posts: 42
Karma: 10
Join Date: May 2009
Device: PRS-505
|
Kiklop74, thanks! But although I've now removed these newlines from the recipe, producing this line:
extra_css = '.heading {font-size: 13px; line-height: 15px; margin: 20px 0;} h2 {font-size: 24px; line-height: 25px; margin-bottom: 14px;} .author {font-size: 11px; margin: 0 0 5px 0;} .lead {font-weight: 700; margin: 10px 0;} p {margin: 0 0 10px 0;}' I still get the same error message. |
![]() |
![]() |
#690 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,384
Karma: 27756918
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Add the following to the top of the recipe
from calibre.web.feeds.news import BasicNewsRecipe |
![]() |
![]() |
|
![]() |
||||
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 |