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 12-29-2009, 12:18 PM   #1036
jimmypatrick
Member
jimmypatrick began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Dec 2009
Location: Cupertino, CA
Device: Kindle 2, iPad
cypher, you can use the recipe. You don't put the recipe on your kindle, you use it in calibre as a custom news source. I'll take a look at PS3center and see if I can make a recipe for that.
jimmypatrick is offline  
Old 12-29-2009, 05:01 PM   #1037
Briand
Member
Briand began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Dec 2009
Location: Halifax, Nova Scotia
Device: Sony PRS-300
kiklop74

I just got my first ereader and so I am new to Calibre and this forum...but I just want to say how amazing it is to see all the recipes you have created for folks and to say thanks.
I posted a request for a couple of recipes and one of these days I would like to learn how to make my own.

Thanks again
Brian
Briand is offline  
Old 12-29-2009, 05:39 PM   #1038
espariz
Junior Member
espariz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Dec 2009
Device: Kindle 2 Global Wireless
Many thanks for all recipes, I am new in kindle 2 and this forum and this is incredible... If you have time, please tell me a recipe for:

http://rss.elmundo.es/rss/

Thanks!! Have a nice end of year!
espariz is offline  
Old 12-29-2009, 06:18 PM   #1039
cypherslock
Groupie
cypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of light
 
cypherslock's Avatar
 
Posts: 178
Karma: 12392
Join Date: Nov 2009
Location: Canada
Device: Kobo Vox
Quote:
Originally Posted by jimmypatrick View Post
cypher, you can use the recipe. You don't put the recipe on your kindle, you use it in calibre as a custom news source. I'll take a look at PS3center and see if I can make a recipe for that.
Thanks a lot my friend. If/when you do also if you could show me how you did it it would be most educational.
cypherslock is offline  
Old 12-29-2009, 07:07 PM   #1040
jimmypatrick
Member
jimmypatrick began at the beginning.
 
Posts: 15
Karma: 10
Join Date: Dec 2009
Location: Cupertino, CA
Device: Kindle 2, iPad
I don't see any RSS feeds on your PS3 site. Was there an RSS feed you were looking at?
jimmypatrick is offline  
Old 12-29-2009, 10:30 PM   #1041
mtutalo
Junior Member
mtutalo began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2009
Device: Nook
Providence Journal Recipe Help

I am trying to get the Providence Journal at www.projo.com but am not getting any articles. If I add the following:
"def print_version(self, url):
return url.replace('http://', 'http://newsvote.bbc.co.uk/mpapps/pagetools/print/')
"
I get web pages with adds and a lot of extra stuff.

Any advice would be greatly appreciated. Here is my Recipe:

import re
from calibre.web.feeds.news import BasicNewsRecipe


class ProvidenceJournal(BasicNewsRecipe):

title = 'Providence Journal'
description = 'RI news'
__author__ = 'Kovid Goyal and Sujata Raman'
use_embedded_content = False
max_articles_per_feed = 20
language = 'en'


remove_javascript = True
no_stylesheets = True

extra_css = '''
#articleCopyright { font-family:Arial,helvetica,sans-serif ; font-weight:bold ; font-size:x-small ;}
p { font-family:"Times New Roman",times,serif ; font-weight:normal ; font-size:small ;}
body{font-family:arial,helvetica,sans-serif}
'''

feeds = [ ('Today\'s Highlights', 'http://www.projo.com/newskiosk/rss/projolocalnews.xml'),
('Politics', 'http://politicsblog.projo.com/index.xml'),
('7 to 7: Rhode Island\'s breaking news blog', 'http://newsblog.projo.com/index.xml'),
('Music', 'http://www.projo.com/newskiosk/rss/projomusic.xml')

]




remove_tags = [{'id':['pfmnav', 'ArticleCommentsWrapper']}]


def get_article_url(self, article):
return article.get('guid', article.get('link', None))

def print_version(self, url):
return url.rpartition('.')[0] + '_pf.html'

def postprocess_html(self, soup, first):
for div in soup.findAll(name='div', style=re.compile('margin')):
div['style'] = ''
return soup
mtutalo is offline  
Old 12-29-2009, 10:41 PM   #1042
cypherslock
Groupie
cypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of light
 
cypherslock's Avatar
 
Posts: 178
Karma: 12392
Join Date: Nov 2009
Location: Canada
Device: Kobo Vox
Quote:
Originally Posted by jimmypatrick View Post
I don't see any RSS feeds on your PS3 site. Was there an RSS feed you were looking at?
http://www.ps3center.net/rss.xml

It IS out of the way. I've mentioned to the owner about it before....guess I'll have to remind him to get it more prominent. LOL
cypherslock is offline  
Old 12-30-2009, 05:06 AM   #1043
evanmaastrigt
Connoisseur
evanmaastrigt doesn't litterevanmaastrigt doesn't litter
 
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
Quote:
Originally Posted by mtutalo View Post
I am trying to get the Providence Journal
You can not expect the recipe for The Washington Post to work on this website (or any other website for that matter). You have to examine the HTML and adjust accordingly.

For a start: remove the extra_css and remove_tags properties. Then remove the get_article_url(), print_version() and postprocess_html() methods. Then add the following line
Code:
keep_only_tags = [dict(name = 'div', attrs = {'id': 'storycontentleft'})]
Refine by removing unwanted tags and adding css to your liking.
evanmaastrigt is offline  
Old 12-30-2009, 06:45 AM   #1044
evanmaastrigt
Connoisseur
evanmaastrigt doesn't litterevanmaastrigt doesn't litter
 
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
New recipe for the Journal of Accountancy

Here is a new recipe for the Journal of Accountancy:

journalofaccountancy.zip
evanmaastrigt is offline  
Old 12-30-2009, 09:28 AM   #1045
evanmaastrigt
Connoisseur
evanmaastrigt doesn't litterevanmaastrigt doesn't litter
 
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
Quote:
Originally Posted by Argueros View Post
Can I get a recipe for the print edition of El Universal? Url: http://www.eluniversal.com.mx/edicion_impresa.html

The recipe included with Calibre only fetch the RSS and the information greatly varies. Thanks!
Here we are:
eluniversalimpresa.zip
evanmaastrigt is offline  
Old 12-30-2009, 10:40 AM   #1046
pking36330
FT Parent PT Reader
pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.pking36330 can program the VCR without an owner's manual.
 
pking36330's Avatar
 
Posts: 322
Karma: 187838
Join Date: Mar 2009
Location: South Alabama
Device: Shocked by how much I've read on an iPod Touch received as a gift!
Hate to ask a question that is probably posted somewhere I should have already seen, but after you create these custom recipes, are they automatically included in the next update to Calibre?
pking36330 is offline  
Old 12-30-2009, 12:26 PM   #1047
evanmaastrigt
Connoisseur
evanmaastrigt doesn't litterevanmaastrigt doesn't litter
 
Posts: 78
Karma: 192
Join Date: Nov 2009
Device: Sony PRS-600
New recipes for Big Government and Pro Publica

Quote:
Originally Posted by Conexion View Post
I've been trying to add the feed - http://feeds.feedburner.com/BigGovernment
<snip/>
Anyways, would anybody be able to convert that to a recipe for me in the mean time? Thanks!
Sure, here is a nice package: in it are recipes for Big Government and Pro Publica:

politalpackage-2.zip
evanmaastrigt is offline  
Old 12-30-2009, 12:28 PM   #1048
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,373
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Quote:
Originally Posted by pking36330 View Post
Hate to ask a question that is probably posted somewhere I should have already seen, but after you create these custom recipes, are they automatically included in the next update to Calibre?
For the most part.
kovidgoyal is offline  
Old 12-30-2009, 02:38 PM   #1049
cypherslock
Groupie
cypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of lightcypherslock is a glorious beacon of light
 
cypherslock's Avatar
 
Posts: 178
Karma: 12392
Join Date: Nov 2009
Location: Canada
Device: Kobo Vox
I would love to see a recipe for Psychology Today, or Scientific American Mind.
cypherslock is offline  
Old 12-30-2009, 03:26 PM   #1050
mtutalo
Junior Member
mtutalo began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Dec 2009
Device: Nook
Quote:
Originally Posted by evanmaastrigt View Post
You can not expect the recipe for The Washington Post to work on this website (or any other website for that matter). You have to examine the HTML and adjust accordingly.

For a start: remove the extra_css and remove_tags properties. Then remove the get_article_url(), print_version() and postprocess_html() methods. Then add the following line
Code:
keep_only_tags = [dict(name = 'div', attrs = {'id': 'storycontentleft'})]
Refine by removing unwanted tags and adding css to your liking.
Thanks for the quick advice! I will try that and see what I get.
mtutalo 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 03:26 PM.


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