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 02-27-2010, 10:21 AM   #1501
Costaz
Junior Member
Costaz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by p4np5n View Post
Ok, I managed to find out what's wrong with the above. I would therefore like to submit (the first) two greek recipes for calibre!

Kathimerini
Spoiler:
from calibre.web.feeds.recipes import BasicNewsRecipe

class Kathimerini(BasicNewsRecipe):
title = 'Kathimerini'
__author__ = 'Pan'
description = 'News from Greece'
max_articles_per_feed = 100
oldest_article = 100
publisher = 'Kathimerini'
category = 'news, GR'
language = 'el'
no_stylesheets = True
remove_tags_before = dict(name='td',attrs={'class':'news'})
remove_tags_after = dict(name='td',attrs={'class':'news'})
remove_attributes = ['width', 'src','header','footer']

feeds = [
('Πολιτική', 'http://wk.kathimerini.gr/xml_files/politics.xml'),
('Ελλάδα', ' http://wk.kathimerini.gr/xml_files/ell.xml'),
('Κόσμος', ' http://wk.kathimerini.gr/xml_files/world.xml'),
('Οικονομία', 'http://wk.kathimerini.gr/xml_files/economy_1.xml'),
('Επιχειρήσεις', 'http://wk.kathimerini.gr/xml_files/economy_2.xml'),
('Διεθνής Οικονομία', 'http://wk.kathimerini.gr/xml_files/economy_3.xml'),
('Πολιτισμός', 'http://wk.kathimerini.gr/xml_files/civ.xml'),
('Μόνιμες Στήλες', 'http://wk.kathimerini.gr/xml_files/st.xml'),
]

def print_version(self, url):
return url.replace('http://news.kathimerini.gr/4dcgi/', 'http://news.kathimerini.gr/4dcgi/4dcgi/')


and Ta Nea
Spoiler:
class TaNea(BasicNewsRecipe):
title = u'Ta Nea'
__author__ = 'Pan'
oldest_article = 1
max_articles_per_feed = 100
no_stylesheets = True

remove_tags_before = dict(name='div',attrs={'id':'print-body'})
remove_tags_after = dict(name='div',attrs={'id':'text'})
feeds = [
(u'Ελλάδα', u'http://www.tanea.gr/default.asp?pid=66&la=1'),
(u'Κόσμος', u'http://www.tanea.gr/default.asp?pid=67&la=1'),
(u'Οικονομία', u'http://www.tanea.gr/default.asp?pid=68&la=1'),
(u'Πολιτισμός', u'http://www.tanea.gr/default.asp?pid=69&la=1'),
(u'Γνώμες', u'http://www.tanea.gr/default.asp?pid=79&la=1'),
(u'Ριπές', u'http://www.tanea.gr/default.asp?pid=80&la=1'),
(u'Αιχμές', u'http://www.tanea.gr/default.asp?pid=81&la=1')
]

def print_version(self, url):
return url.replace('http://www.tanea.gr/default.asp?pid=2', 'http://www.tanea.gr/default.asp?pid=96')
Am I missing something? The above two recipes were supposed to be in 0.6.41, according to the changelog. I am now using 0.6.43 and they don't seem to appear in the Fetch News Dialog . Any ideas?
Costaz is offline  
Old 02-27-2010, 11:35 AM   #1502
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Oops, I made a mistake including the Greek recipes, will be fixed in 0.6.44
kovidgoyal is offline  
Old 02-27-2010, 02:42 PM   #1503
Dereks
Connoisseur
Dereks began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Feb 2010
Device: Kindle Paperwhite 1
Hello everybody,

I've addressed the following issue several times already, but I have the feeling that I am being ignored on purpose. If so, please excuse me and point out where my mistake is.
But I've been waiting for a help with Google Reader recipe for several weeks now.
I will repeat my question again here:

Is it possible to modify default google reader recipe, already available in calibre, in such a way that it will download only starred items?

I would really appreciate if somebody helps me with this one.
Dereks is offline  
Old 02-27-2010, 02:44 PM   #1504
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Since the person who wrote the Google reader recipe doesn't hang out here anymore, you're unlikely to get an answer. But as I recall, there were two recipes one which downloaded only starred articles and one which downloaded all unread items.
kovidgoyal is offline  
Old 02-27-2010, 02:54 PM   #1505
Dereks
Connoisseur
Dereks began at the beginning.
 
Posts: 57
Karma: 10
Join Date: Feb 2010
Device: Kindle Paperwhite 1
Thanks for the reply!

Yes, I've searched through the relevant topics on the forum. If I understood correctly, the first one downloads starred items only if there are no any tags used. unfortunately that's not the case with me, as I have quite a few folders/tags. The second one basically modified the first recipe, only instead of downloading all the most recent posts, from each folder, it downloads all unread items.
Dereks is offline  
Old 02-27-2010, 03:01 PM   #1506
jgordon
Junior Member
jgordon began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2010
Device: Kindle 2
Kansas City Star Recipie

Hello everyone.

I've been trying to setup a Custom News Source for the KC Star (local newspaper)using the following RSS feed. http://www.kansascity.com/105/index.xml

Calibre fetches the data but it seems to contain 2 copies of the same story one that is easily read and the other that has a lot of formatting in it. I also get the Denver Post from the available Recipes and it is formatted very nice. How do I get the KC Star to look like the Denver Post?

Thanks
John
jgordon is offline  
Old 02-27-2010, 04:24 PM   #1507
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,411
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
As I dont use Google Reader, I'm not familiar enough with the API to help, sorry.
kovidgoyal is offline  
Old 02-28-2010, 04:24 AM   #1508
EdBurman
Junior Member
EdBurman began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2010
Device: Sony prs-505
Observer UK - modifying Guardian recipe

For Pauliehk

My first couple of attempts at modifying the existing recipe failed, but I am pretty new to this. The key to making it work seems to be to change the soup section by replacing:

soup = self.index_to_soup('http://www.guardian.co.uk/theguardian')
with
soup = self.index_to_soup('http://www.guardian.co.uk/theobserver')

I also changed the feeds section to include the observer rss feeds and
the img source in the soup section to

img = soup.find( 'img',attrs ={'alt':'Observer digital edition'})

I'm sure there is some fine tuning needed but its a start.
EdBurman is offline  
Old 02-28-2010, 04:47 AM   #1509
Costaz
Junior Member
Costaz began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by kovidgoyal View Post
Oops, I made a mistake including the Greek recipes, will be fixed in 0.6.44
Many thanks for the quick response! And well done (and many many thanks) for the great work you are doing .
Costaz is offline  
Old 02-28-2010, 01:39 PM   #1510
mIIwaukee
Junior Member
mIIwaukee began at the beginning.
 
mIIwaukee's Avatar
 
Posts: 1
Karma: 10
Join Date: Feb 2010
Location: Cedarburg, WI
Device: prs600
Request for Instructables.com

Hi,

If anyone has time, I think instructables.com is a good candidate for a custom recipe. I attempted to make my own recipe(s) but it's above my head. Their feeds don't have full content, and occasionally the site will request that a user logs in.

Very interested in getting Featured and Popular posts to work:
http://feeds.feedburner.com/instructables/featured
http://feeds.feedburner.com/instructables/popular

(But having all categories would also be great)
* Art
* Craft
* Food
* Games
* Green
* Home
* Kids
* Life
* Music
* Offbeat
* Outdoors
* Pets
* Photo
* Ride
* Science
* Tech

Have a great day!

mark

Last edited by mIIwaukee; 02-28-2010 at 01:47 PM.
mIIwaukee is offline  
Old 02-28-2010, 02:50 PM   #1511
nittecat
Junior Member
nittecat began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2010
Device: Kindle DX
Request for CNBC Magazine

Hi all,

I have been trying to create a custom recipe to retrieve CNBC Magazine at http://www.cnbcmagazine.com where the latest issue is displayed as separate articles.

But I couldn't succeed so far. Can anyone give assitance for customizing recipe to retrieve CNBC Magazine?

Thanks to all for their valuable time and assistance..

taci
nittecat is offline  
Old 03-01-2010, 05:02 AM   #1512
anabelee
Zealot
anabelee will become famous soon enoughanabelee will become famous soon enoughanabelee will become famous soon enoughanabelee will become famous soon enoughanabelee will become famous soon enoughanabelee will become famous soon enough
 
anabelee's Avatar
 
Posts: 114
Karma: 583
Join Date: Dec 2009
Location: Vigo, Spain
Device: Woxter Scriba 150, pocketbook 360
Another request from Spain, if possible.

http://www.diariovasco.com/

Thank you in advance, guys.
anabelee is offline  
Old 03-01-2010, 02:09 PM   #1513
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
Recipe for Diario Vasco:
Attached Files
File Type: zip diariovasco.zip (1.4 KB, 207 views)
kiklop74 is offline  
Old 03-01-2010, 03:51 PM   #1514
jrollmorton
Junior Member
jrollmorton began at the beginning.
 
jrollmorton's Avatar
 
Posts: 3
Karma: 10
Join Date: Feb 2010
Location: Vancouver, BC, Canada
Device: Amazon Kindle, iPhone
Recipe for The Walrus

A newbie, here. I've spent some time trying to write a recipe for my favourite Canadian journal, The Walrus: http://www.walrusmagazine.com

Following the calibre user guide, I've written recipes to generate the RSS feed from the magazine, which links to full articles elsewhere on the website. I've tried accessing the print version of the articles, but get loads of crud and ads and only page one of the multi-page articles.

I'm having fun trying this, but not having satisfactory success. Can anyone help me to get at least the full print version of these articles? Then I can try getting out the crud by modifying the CSS or whatever.

Many thanks!
jrollmorton is offline  
Old 03-02-2010, 01:30 AM   #1515
Logseman
Orisa
Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.Logseman ought to be getting tired of karma fortunes by now.
 
Logseman's Avatar
 
Posts: 2,001
Karma: 1035571
Join Date: Feb 2010
Location: Ireland
Device: Onyx Poke 5
It could be that this matter has already been addressed (the thread is incredibly large so I couldn't check it in its entirety, but I have a question not concerning a specific source to make a recipe from, but a "pattern recipe" for a certain service provider (in this case, Blogger). I tend to navigate through various Blogger blogs, mainly of my friends, who have not edited or changed the RSS code, simply because they don't know how. Could it be possible to make a "pattern recipe" for all Blogger-powered blogs? Or eventually for other service providers like Wordpress or Blog.com?

Thanks in advance. This program is worth much more than the 10 dollars i managed to tip in. Keep up the good work ^^
Logseman 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 02:47 PM.


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