Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Closed Thread
 
Thread Tools Search this Thread
Old 08-25-2009, 10:45 AM   #676
Gomes
Junior Member
Gomes began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2009
Location: Philadelphia
Device: PRS-505
Any chance of philly.com?
Gomes is offline  
Old 08-25-2009, 12:24 PM   #677
GRiker
Comparer of the Ephemeris
GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.GRiker ought to be getting tired of karma fortunes by now.
 
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
GRiker is offline  
Old 08-25-2009, 12:37 PM   #678
Gomes
Junior Member
Gomes began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Aug 2009
Location: Philadelphia
Device: PRS-505
Thanks - I'll mess around with it tonight...
Gomes is offline  
Old 08-25-2009, 07:47 PM   #679
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
Quote:
Originally Posted by bhandarisaurabh View Post
this is the error calibre gives during fetching .
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
everything works just fine.

I will report this in calibre trac.
kiklop74 is offline  
Old 08-25-2009, 08:13 PM   #680
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
New recipe for The Edge Singapore:
Attached Files
File Type: zip theedgesingapore.zip (1.1 KB, 236 views)
kiklop74 is offline  
Old 08-26-2009, 10:55 AM   #681
iggysprint
Junior Member
iggysprint began at the beginning.
 
Posts: 9
Karma: 10
Join Date: May 2009
Device: KindleDX
Thank you!

Quote:
Originally Posted by kiklop74 View Post
New recipe for The Edge Singapore:
Hey Darko,

Thanks a bunch.. much appreciated!

Iggy
iggysprint is offline  
Old 08-26-2009, 03:35 PM   #682
indole
Junior Member
indole began at the beginning.
 
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'])]
Attached Files
File Type: txt intelligencer.log.txt (19.0 KB, 219 views)

Last edited by indole; 08-26-2009 at 09:51 PM.
indole is offline  
Old 08-27-2009, 07:27 PM   #683
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
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:
Attached Files
File Type: zip inteligencer.zip (804 Bytes, 244 views)
kiklop74 is offline  
Old 08-27-2009, 11:03 PM   #684
indole
Junior Member
indole began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2009
Device: PRS-700
Quote:
Originally Posted by kiklop74 View Post
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:
Thanks! I was having trouble with my recipe and it not displaying properly on my reader.
indole is offline  
Old 08-28-2009, 08:52 AM   #685
badkya
Junior Member
badkya began at the beginning.
 
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/
badkya is offline  
Old 08-29-2009, 05:50 AM   #686
cometoluc
Junior Member
cometoluc began at the beginning.
 
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
cometoluc is offline  
Old 08-30-2009, 03:47 AM   #687
TMF
Enthusiast
TMF began at the beginning.
 
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')
If I try to download it, I get this error message:

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
What am I doing wrong?

I submitted a ticket about it, http://calibre.kovidgoyal.net/ticket/2683, but unfortunately I do not understand the reply.
TMF is offline  
Old 08-30-2009, 07:02 AM   #688
kiklop74
Guru
kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.kiklop74 can program the VCR without an owner's manual.
 
kiklop74's Avatar
 
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> '
Note the bolded end of line character. What Kovid is telling you is that you can not have end of line character in extra_css. Remove all of those and you will be fine.
kiklop74 is offline  
Old 08-30-2009, 04:52 PM   #689
TMF
Enthusiast
TMF began at the beginning.
 
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.
TMF is offline  
Old 08-30-2009, 05:55 PM   #690
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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
kovidgoyal is online now  
Closed Thread


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 04:22 AM.


MobileRead.com is a privately owned, operated and funded community.