![]() |
#1441 | |
US Navy, Retired
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,897
Karma: 13806776
Join Date: Feb 2009
Location: North Carolina
Device: Icarus Illumina XL HD, Kindle PaperWhite SE 11th Gen
|
Quote:
|
|
![]() |
![]() |
#1442 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Feb 2010
Device: Kindle Paperwhite 1
|
yes, I did.
It creates an empty page under "starred" and "broadcast" titles and then pick up all my tags and folders from the google reader. |
![]() |
Advert | |
|
![]() |
#1443 |
Licensed Raconteur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 53
Karma: 514
Join Date: Nov 2009
Location: "Travelling"
Device: Kindle 3, Sony PRS-600, iPod Touch
|
Would it be possible to build a sort of "dragnet" recipe that would consistently search blogs for a certain phrase, and return me the results once a day? I have no programming skills whatsoever, but I wonder if this couldn't be done through Technorati or even Google's blog search somehow.
|
![]() |
![]() |
#1444 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2010
Device: HTC HD2
|
Hi,
I am trying to create a recipe for a greek news website. The recipe so far looks like that: Code:
from calibre.web.feeds.recipes import BasicNewsRecipe class Kathimerini(BasicNewsRecipe): title = 'Kathimerini' __author__ = 'Pan' description = 'News from Greece' oldest_article = 2 max_articles_per_feed = 100 encoding = 'windows-1253' publisher = 'Kathimerini' category = 'news, GR' language = 'el' feeds = [ ('Πολιτική', 'http://wk.kathimerini.gr/xml_files/politics.xml'), ] def print_version(self, url): return url.replace('http://news.kathimerini.gr/4dcgi/', 'http://news.kathimerini.gr/4dcgi/4dcgi/') http://wk.kathimerini.gr/xml_files/politics.xml To get a printable view from a news item, say: http://news.kathimerini.gr/4Dcgi/_w_...02/2010_390924 one has to add another "4Dcgi" string in the url: http://news.kathimerini.gr/4Dcgi/4Dc...02/2010_390924 (I believe I've done it correctly. ) However, when executing the recipe, it seems to be unable to get any articles from the feed. any ideas? Last edited by p4np5n; 02-16-2010 at 07:47 AM. |
![]() |
![]() |
#1445 |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Feb 2010
Device: HTC HD2
|
A few greek recipes
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:
and Ta Nea Spoiler:
|
![]() |
Advert | |
|
![]() |
#1446 | |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,410
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
This would be very inefficient to build in calibre as calibre would have to go an search every blog page, every time. Instead if there is some web service that does this, say google alerts, that also provides an RSS feed, it may be possible to use that to build a recipe.
Quote:
|
|
![]() |
![]() |
#1447 |
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2010
Device: Kindle2
|
I am trying to work in a feed from the Kansas City Star. When I go to print version they embed a v-print in the middle.
I was hoping this code would fix it: def print_version(self, url): parts=url.split('/') id = parts[4].split('.') if not id[0].isdigit(): id = parts[5].split('.') return url.replace(url, 'http://www.kansascity.com/sports/royals/v-print/story/' + id[0]) But instead, I just get a page of nothing :-) |
![]() |
![]() |
#1448 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
New recipe for Wired Magazine - UK edition:
Just to clarify this is a recipe for a monthly edition of Wired Magazine - not the daily feed stuff. Update: Modified the recipe to fix cover url error Last edited by kiklop74; 02-17-2010 at 11:39 AM. |
![]() |
![]() |
#1449 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
Code:
def print_version(self, url): art, sep, rest = url.rpartition('/story/') return art + '/v-print/story/' + rest |
|
![]() |
![]() |
#1450 |
Member
![]() Posts: 18
Karma: 10
Join Date: Feb 2010
Device: Kindle2
|
![]() ![]() That did it! All I need to do now is remove the printer icon and the site logo. Hopefully I can do that. (knocks on wood) |
![]() |
![]() |
#1451 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2010
Location: Norway
Device: Sony Reader PRS-300 and Sony Reader PRS-T1
|
Hi
![]() Have been trying to make a recipe by myself, but didn't quite understand it. I really want a recipe that's combined of these two feeds:
Is that possible? Edit: I tried this, but it would not download. Code:
class AdvancedUserRecipe1266438034(BasicNewsRecipe): title = u'ScienceDaily - Arachnids and Insects' oldest_article = 40 max_articles_per_feed = 100 feeds = [(u'ScienceDaily: Spider and Tick News', u'http://www.sciencedaily.com/rss/plants_animals/spiders.xml'), (u'ScienceDaily: Insect (and Butterfly) News', u'http://www.sciencedaily.com/rss/plants_animals/insects_and_butterflies.xml')] Last edited by Chi; 02-17-2010 at 03:23 PM. |
![]() |
![]() |
#1452 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
There is already available Science Daily recipe. You can just edit that one to fit your needs - which means add your feeds.
You will find the recipe in {calibre inst folder}/resources/recipes/sciencedaily.recipe |
![]() |
![]() |
#1453 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Feb 2010
Location: Norway
Device: Sony Reader PRS-300 and Sony Reader PRS-T1
|
Quote:
![]() But I can't seem to find the find the location or the file named "sciencedaily.recipe". I'm using Ubuntu 9.10 so maybe that's the problem? Edit: Forget it, I found it under ./usr/lib/calibre/calibre/web/feeds/recipes ![]() Last edited by Chi; 02-17-2010 at 03:45 PM. |
|
![]() |
![]() |
#1454 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Ah so packaging is different on linux
|
![]() |
![]() |
#1455 |
Connoisseur
![]() Posts: 57
Karma: 10
Join Date: Feb 2010
Device: Kindle Paperwhite 1
|
what about google recipe. If i didn't make myself clear: i am talking about default calibrie-packaged recipe. In my cases, it picks up all the stuff from folders, omits starred section.
How can it be modified to do exactly the opposite: i need only starred items. thanks. |
![]() |
![]() |
|
![]() |
||||
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 |