Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 10-06-2008, 07:27 AM   #1
jamiepullman
Member
jamiepullman began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Sep 2008
Device: Sony Reader
Oh for goodness sake.

Calibre is great, and I love the news feeds thing. My only problem is, that I can't work out for love nor money, how to do one for The Guardian's news, sport and comment sections.
Does anyone have one they've already made?
Cheers, Jamie.
jamiepullman is offline   Reply With Quote
Old 10-07-2008, 09:24 PM   #2
Seabound
Steerage Class
Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.
 
Seabound's Avatar
 
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
Here you go:

Quote:
class Guardian(BasicNewsRecipe):
title = u'The Guardian'
oldest_article = 7
max_articles_per_feed = 100

timefmt = ' [%a, %d %b %Y]'

remove_tags_before = dict(id='main-article-info')
remove_tags_after = dict(id='article-wrapper')
remove_tags_after = dict(id='content')
no_stylesheets = True
extra_css = 'h2 {font-size: medium;} \n h1 {text-align: left;}'

feeds = [
('Front Page', 'http://www.guardian.co.uk/rss'),
('Sport', 'http://www.guardian.co.uk/sport/rss'),
('Comment','http://www.guardian.co.uk/commentisfree/rss')
]
You can add or delete sections by adding or deleting rss feeds. Go to the Guardian web site to get the rss feed addresses. As usual, it is best to upload the news file to the Sony Reader using the Sony eBook Library software, especially since the Guardian tends to have many photos, and the files are therefore big.
Seabound is offline   Reply With Quote
 
Advertisement
Old 10-07-2008, 09:48 PM   #3
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks, I've added the recipe to Calibre.
kovidgoyal is offline   Reply With Quote
Old 10-07-2008, 09:56 PM   #4
Seabound
Steerage Class
Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.Seabound ought to be getting tired of karma fortunes by now.
 
Seabound's Avatar
 
Posts: 711
Karma: 505995
Join Date: Mar 2008
Location: Pacific Northwest, USA
Device: Won't fit here anymore, see sig for a list of liseuses.
Quote:
Originally Posted by kovidgoyal View Post
Thanks, I've added the recipe to Calibre.
Thanks, Kovid!
Seabound is offline   Reply With Quote
Old 10-08-2008, 03:19 AM   #5
jamiepullman
Member
jamiepullman began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Sep 2008
Device: Sony Reader
You sir, are a scholar and a gentleman.
Jamie.
jamiepullman is offline   Reply With Quote
Old 10-08-2008, 09:24 AM   #6
kesey
Enthusiast
kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.kesey ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 490394
Join Date: Aug 2008
Location: Cork
Device: Kindle Keyboard
Quote:
Originally Posted by jamiepullman View Post
You sir, are a scholar and a gentleman.
Jamie.
"And a good judge of whiskey!":-)
kesey is offline   Reply With Quote
Old 10-08-2008, 09:58 AM   #7
mikeywilliams25
Enthusiast
mikeywilliams25 began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Aug 2008
Location: London
Device: Sony PRS-T1
I modified the script to load the technology pages and calibre created an epub.
Most of it reads fine on teh reader, but some of the links towards the end of the technology TOC cause the reader to format and then reboot. This happens whether i transfer directly from calibre or using the book library.

The epub also crashes in the book library preview but not in the AdobeDE reader - but the pages which would have the offending links on them are clearly in error as everything including the item descriptions are shown in blue as links. Could be a Guardian messup or a bug in calibre (surely not).
mikeywilliams25 is offline   Reply With Quote
Old 10-08-2008, 02:22 PM   #8
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Post your modified recipe.
kovidgoyal is offline   Reply With Quote
Old 10-08-2008, 03:19 PM   #9
mikeywilliams25
Enthusiast
mikeywilliams25 began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Aug 2008
Location: London
Device: Sony PRS-T1
class Guardian(BasicNewsRecipe):

title = u'The Guardian'
oldest_article = 7
max_articles_per_feed = 100

timefmt = ' [%a, %d %b %Y]'

remove_tags_before = dict(id='main-article-info')
remove_tags_after = dict(id='article-wrapper')
remove_tags_after = dict(id='content')
no_stylesheets = True
extra_css = 'h2 {font-size: medium;} \n h1 {text-align: left;}'

feeds = [

('Front Page', 'http://www.guardian.co.uk/rss'),
('Comment','http://www.guardian.co.uk/commentisfree/rss'),
('Media', 'http://www.guardian.co.uk/media/rss'),
('Technology', 'http://www.guardianfeeds.co.uk/technology/rss')

]

The epub creation has problems with the last of the technology links and also some in the Media section.
The LRF version has no such problems (but the epub has better picture handling)
mikeywilliams25 is offline   Reply With Quote
Old 10-08-2008, 04:04 PM   #10
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Hmm the guardian servers are apparently down.
kovidgoyal is offline   Reply With Quote
Old 10-09-2008, 08:38 AM   #11
mikeywilliams25
Enthusiast
mikeywilliams25 began at the beginning.
 
Posts: 35
Karma: 10
Join Date: Aug 2008
Location: London
Device: Sony PRS-T1
thursday morning the servers were working OK.
The LRF is fine but the epub again has problems with some of the links causing a reboot. The epub version is also slower responding to links whereas the lrf has only the usual inter page delay.
I do like the epub layout though, more elegant layout than the lrf.

Another comment - when the reader was plugged in downloading the news went straight to the reader, but even the lrf would then crash after lengthy formatting. I had to reload the news without the reader plugged in so that I could use the eBook library to do the moving. No point in having calibre transferring to the reader if the reader cannot cope with the formatting. No doubt we need a new version of AdobeDe to cope with formatting better.
Thanks again Kovid for all your work.
mikeywilliams25 is offline   Reply With Quote
Old 10-09-2008, 03:26 PM   #12
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: 26,436
Karma: 5383257
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I have informed Peter Sorotkin (from Adobe) about the crashing bugs with EPUB files, so hopefully, they will be able to fix them and SONY will release a firmware update soon.

EPUB is slower responding to links because it doesn't pre-render all the content, so at each link it has to render the section the link points to.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Historical Fiction Holt, Emily Sarah: For the Master's Sake. V1. 9 July 2010 crutledge BBeB/LRF Books 0 07-09-2010 04:25 PM
Historical Fiction Holt, Emily Sarah: For the Master's Sake. V1. 9 July 2010 crutledge ePub Books 0 07-09-2010 04:22 PM
for the sake of argument... Opus Amazon Kindle 9 06-21-2010 11:55 PM
Oh for $deity sake. Riocaz iRex 37 09-14-2006 05:49 AM
My goodness it's gorgeous. Riocaz iRex 7 07-20-2006 07:57 PM


All times are GMT -4. The time now is 08:56 PM.


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