![]() |
#2461 |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
![]()
Alright I put in what you said but I still don't appear to be getting the print version. I'm testing it using
ebook-convert myrecipe.recipe output_dir --test -vv I still see the weather tags and search and so on so that is definately not the print version... here is what I have so far.... Spoiler:
![]() |
![]() |
![]() |
#2462 | |
Member
![]() Posts: 17
Karma: 10
Join Date: Aug 2010
Device: Kindle DX
|
Quote:
Code:
|
|
![]() |
![]() |
#2463 | |
Enthusiast
![]() Posts: 49
Karma: 10
Join Date: Aug 2009
Device: none
|
Quote:
![]() |
|
![]() |
![]() |
#2464 |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
What would prevent get_printversion from finding a url in a rss feed and simply modifying it? I thought maybe def get_obfuscated_article(self, url): might be what I need to use. Cause when I look at the rss the links to the printversion simply need ?printArticle=y appended I just can't figure out for the life of me how to get this thing to feed in the links on the rss and simply modify it....
When i try this: Spoiler:
I still get the non-print version as if the dang thing isn't modifying the link(s). So I tried this, Spoiler:
What i was hoping the above would do is sparse the rss feed for links. and sort them in a variable called link and then pass it into the print_version function using the parameter of link. I'm probably way off but I'm trying to figure it out just need a little boost if someone minds helping a newbie. |
![]() |
![]() |
#2465 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Aug 2010
Device: HTC Android using Aldiko
|
Hello guys... you are doing a great work with calibre
I inteded to post something on my website for calibre but I would like to post a recipe for my website (http://elkosmas.gr). I have made a simple recipe for me using the GUI but I think that's not really good enough. My major concern is that althought I don't mind seeing Feedflares or other stuff on my feed... seeing it in a ebook is a major turnoff. My other concern is that sometimes i tend to include embedded videos on my posts... when I do so i prefer to use a <More> tag in my RSS feed just before the video so people with low bandwidth connections can read the feed with ease. The way i see it i prefer to provide just content (and some metadata to users) I also started translating some stuff to Greek ![]() |
![]() |
![]() |
#2466 |
Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 14
Karma: 87858
Join Date: Dec 2009
Device: Kindle 3
|
La Jornada (México)
Hi, I've created a recipe for "La Jornada", a Mexican newspaper. I'm still working on it to fix some details, but it is usable right now.
|
![]() |
![]() |
#2467 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 322
Karma: 1057749
Join Date: May 2010
Location: LA, CA
Device: Kindle Paperwhite 2013
|
I used to have Dr Housing Bubble blog on a custom feed in calibre, but since I had to reload calibre onto my iMac, it doesn't work anymore. Now all I get are the headlines, no article follows. I've spent some time poring over the Users Manual but haven't been able to crack it. Any help is appreciated.
The feed is here: feed://feeds.feedburner.com/DrHousingBubble-HowILearnedToLoveSocal |
![]() |
![]() |
#2468 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
ebook-convert myrecipe.recipe output_dir --test -vv > myrecipe.txt Quote:
Here is what I tested - it's the same as your recipe, but with indents. Perhaps you really don't have any indents in your recipe? It's not possible to tell, which is why it's so important to post recipes in code tags. Spoiler:
(Sorry for the delay in reply - I've been unable to post or test anything for the last couple days - a medical issue). |
||
![]() |
![]() |
#2469 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Code:
remove_tags = [dict(name='div', attrs={'id':'blox-logo'}),dict(name='a')] |
|
![]() |
![]() |
#2470 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
Code:
def print_version(self, url): print_url = url.partition('?')[0] +'?printArticle=y' print 'print_url is: ', print_url return print_url |
||
![]() |
![]() |
#2471 | |
Addict
![]() Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
|
Quote:
![]() I understood you said it worked. I wasn't doubting that at all. I just couldn't understand why it wasn't working on my end. I thank you very much for helping me out on this by the way. Sorry for any confusion or misunderstanding. And also, I hope your doing better as you mentioned you had a medical issue. Thanks again for your time and effort in this.. ![]() Last edited by TonytheBookworm; 08-20-2010 at 04:48 PM. Reason: update status |
|
![]() |
![]() |
#2472 |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2010
Device: nook
|
Continuation of my texasmonthly saga:
I used examples and stuff to get articles out of the texasmonthly rss feed (ps, thanks starson17, your way is definitely better). I'm having trouble with authentication though. It looks like it's just not saving login info when it goes to the child pages. This recipe pretty much does what I want for the non-subscription-only articles. If you remove the keep_only_tags and remove_tags, it will show the full web page and text indicating that the user is not logged in. It might be because the RSS link is to a different domain... but it's more likely that I just didn't do something right. Could anyone assist? Thanks, |
![]() |
![]() |
#2473 | |||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Quote:
Even though you are pulling the print_version, it still has some junk in it that you may want to remove. Quote:
Last edited by Starson17; 08-20-2010 at 04:58 PM. |
|||
![]() |
![]() |
#2474 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
![]() You may need to eventually disclose your user/pass to me by PM if we run into something that's really hard to solve - but let's try to avoid that. |
|
![]() |
![]() |
#2475 | |
Junior Member
![]() Posts: 5
Karma: 10
Join Date: Aug 2010
Device: nook
|
Quote:
I'll read up on that stuff by TonyTheBookwork and try a few other things before I try to get you to spend your time reinventing the wheel for me. I'll post back in a bit. 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 |