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 10-11-2009, 10:12 PM   #811
bhandarisaurabh
Enthusiast
bhandarisaurabh began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
Smile

Quote:
Originally Posted by kiklop74 View Post
New recipe for Business World Magazine:
thank you for the recipe
bhandarisaurabh is offline  
Old 10-12-2009, 12:26 PM   #812
Boxdoc
Member
Boxdoc began at the beginning.
 
Posts: 23
Karma: 44
Join Date: Dec 2008
Device: Sony PRS - 700, Kindle 2
Thanks again for the SJ Mercury News, but the recipe doesn't have the Sports.
Is it hard to add that to the recipe?
Boxdoc is offline  
Advert
Old 10-12-2009, 04:35 PM   #813
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 Boxdoc View Post
Thanks again for the SJ Mercury News, but the recipe doesn't have the Sports.
Is it hard to add that to the recipe?
You have the source code. Add any feed you want.
kiklop74 is offline  
Old 10-14-2009, 03:23 AM   #814
bhandarisaurabh
Enthusiast
bhandarisaurabh began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
please can anyone make changes to the economist recipe so that subscribers can view the content
bhandarisaurabh is offline  
Old 10-14-2009, 11:44 AM   #815
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,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It's already done, will be in next release.
kovidgoyal is offline  
Advert
Old 10-14-2009, 04:11 PM   #816
wamblej
Member
wamblej began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2009
Device: Kindle 2
Can I put in a request for a recipe for ESPN - that doesn't require a login? I have made a custom one, but it seems to sit forever trying to download it, so something must be wrong.

class AdvancedUserRecipe1255551050(BasicNewsRecipe):
title = u'ESPN'
oldest_article = 7
max_articles_per_feed = 100

feeds = [(u'Top Stories', u'feed://sports.espn.go.com/espn/rss/news'), (u'NFL', u'feed://sports.espn.go.com/espn/rss/nfl/news'), (u'NBA', u'feed://sports.espn.go.com/espn/rss/nba/news'), (u'College Football', u'feed://sports.espn.go.com/espn/rss/ncf/news')]


That is my recipe. I don't know why it tries for 10-15 minutes before it gets anything, but if there are errors or a whole new recipe would be better, that'd be great. Thanks.

Last edited by wamblej; 10-14-2009 at 07:28 PM.
wamblej is offline  
Old 10-14-2009, 09:56 PM   #817
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 ESPN in English:
Attached Files
File Type: zip espn_en.zip (2.2 KB, 287 views)
kiklop74 is offline  
Old 10-15-2009, 12:53 AM   #818
wamblej
Member
wamblej began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Sep 2009
Device: Kindle 2
Quote:
Originally Posted by kiklop74 View Post
New recipe for ESPN in English:
Thanks!
wamblej is offline  
Old 10-15-2009, 03:47 AM   #819
JvdW
Zealot
JvdW doesn't litterJvdW doesn't litter
 
Posts: 115
Karma: 150
Join Date: Jul 2008
Location: Netherlands Veenendaal
Device: Palm T5, Sony PRS-505, Nook Color
New recipe for Trouw.nl

Here is my contribution to Calibre and its news gathering system.
Its a recipe for the dutch newspaper Trouw. It contains ALL the RSS feeds so if you're not interested in certain topics just comment those feeds out.
Further there is one problem with the coverpage. It gets the main picture but ebook-viewer makes it really wide and my PRS505 doesn't display it

Regards,

Joop
Attached Files
File Type: zip trouw.zip (1.1 KB, 242 views)
JvdW is offline  
Old 10-15-2009, 05:06 PM   #820
CABITSS
Member
CABITSS began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Sep 2009
Device: amazonkindle
Quote:
Originally Posted by kiklop74 View Post
New recipe for Toronto Sun:
Thanks a ton for your helping me clean up my recipe.... this works well.... I have added a few more links to the recipe
How to I add a Gold Star to your ID.... Keep up the GOOD WORK.... we all do appreciate it.

.......

#!/usr/bin/env python

__license__ = 'GPL v3'
__copyright__ = '2009, Darko Miletic <darko.miletic at gmail.com>'
'''
www.torontosun.com
'''

from calibre.web.feeds.news import BasicNewsRecipe

class TorontoSun(BasicNewsRecipe):
title = 'Toronto SUN'
__author__ = 'Darko Miletic'
description = 'News from Canada'
publisher = 'Toronto Sun'
category = 'news, politics, Canada'
oldest_article = 2
max_articles_per_feed = 100
no_stylesheets = True
use_embedded_content = False
encoding = 'cp1252'
language = 'en_CA'

conversion_options = {
'comment' : description
, 'tags' : category
, 'publisher' : publisher
, 'language' : language
}

keep_only_tags =[
dict(name='div', attrs={'class':'articleHead'})
,dict(name='div', attrs={'id':'channelContent'})
]
remove_tags = [
dict(name='div',attrs={'class':['leftBox','bottomBox clear','bottomBox','breadCrumb']})
,dict(name=['link','iframe','object'])
,dict(name='a',attrs={'rel':'swap'})
,dict(name='ul',attrs={'class':'tabs dl contentSwap'})
]

remove_tags_after = dict(name='div',attrs={'class':'bottomBox clear'})

feeds = [
(u'News' , u'http://www.torontosun.com/news/rss.xml' )
,(u'Canada' , u'http://www.torontosun.com/news/canada/rss.xml' )
,(u'Toronto & GTA' ,u'http://www.torontosun.com/news/torontoandgta/rss.xml')
,(u'Sports' ,u'http://www.torontosun.com/sports/rss.xml')
,(u'World' , u'http://www.torontosun.com/news/world/rss.xml' )
,(u'Money' , u'http://www.torontosun.com/money/rss.xml' )
,(u'Life' ,u'http://www.torontosun.com/life/rss.xml')
,(u'Columnists' , u'http://www.torontosun.com/news/columnists/rss.xml')
,(u'Travel' ,u'http://www.torontosun.com/travel/rss.xml' )
]
..............
CABITSS is offline  
Old 10-17-2009, 12:35 PM   #821
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
Two new recipes for two respected blogs about financial information and articles:

Naked Capitalism
and
The Daily Reckoning - US edition
Attached Files
File Type: zip new_recipes.zip (2.9 KB, 233 views)
kiklop74 is offline  
Old 10-18-2009, 09:30 AM   #822
Jonas777
Groupie
Jonas777 has a complete set of Star Wars action figures.Jonas777 has a complete set of Star Wars action figures.Jonas777 has a complete set of Star Wars action figures.Jonas777 has a complete set of Star Wars action figures.
 
Jonas777's Avatar
 
Posts: 153
Karma: 364
Join Date: Oct 2009
Location: Sweden
Device: Amazon Kindle 2 Intl
Recipe for swedish newspaper Corren and plea for help with others

Hi,
I am new here and could not find any recipe for swedish newspapers. So I created a basic one for a local paper called Östgöta Correspondenten a.k.a. Corren, see attached file. It's my first try so I am sure it can be improved.

I have also tried to do recipes for major swedish papers like dn.se and svd.se but have failed so far. dn.se uses some fancy scripting to protect the printed version (link to printing is called "Skriv ut"). svd.se uses the same html-source for both screen and printing but applies a different CSS for printing.

If anyone would care to help, the rss-feeds are at bottom left at www.dn.se and at in left column a little down from the top at http://www.svd.se/special/svdseinfo/artikel_128220.svd for svd (top news is "SvD senaste nytt").

Anyway, Calibre is a very nice program so a big thank you to Kovid Goyal!
Attached Files
File Type: zip corren2.zip (711 Bytes, 231 views)
Jonas777 is offline  
Old 10-18-2009, 02:31 PM   #823
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,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
For svd.se you can just use the htmland provide your own CSS via extra_css

For the other I'd suggest looking at the javascript, the print link is probably in there. You can use a regualr expression to extract it.
kovidgoyal is offline  
Old 10-19-2009, 10:13 PM   #824
bhandarisaurabh
Enthusiast
bhandarisaurabh began at the beginning.
 
Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
please anyone can help me with the recipe for http://www.entrepreneur.com
bhandarisaurabh is offline  
Old 10-20-2009, 07:26 PM   #825
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 Jonas777 View Post
Hi,
I am new here and could not find any recipe for swedish newspapers.
New recipes for svd.se and dn.se:
Attached Files
File Type: zip svd_se.zip (1.3 KB, 220 views)
File Type: zip dn_se.zip (1.5 KB, 219 views)
kiklop74 is offline  
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 10:04 AM.


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