![]() |
#2071 | |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
![]() |
|
![]() |
![]() |
#2072 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jun 2010
Device: Kindle
|
Quote:
Multipage would also benefit the built-in Christian Science Monitor recipe. |
|
![]() |
![]() |
#2073 |
Enthusiast
![]() Posts: 28
Karma: 14
Join Date: Jun 2010
Device: Kindle
|
As capidamonte requested, I too would appreciate if/when someone has the time to write a recipe for the newly merged Honolulu Star-Advertiser (I'm gonna miss the Advertiser)
http://www.staradvertiser.com./rss/ Also, the Boston Globe (Boston) recipe hasn't really worked in the last month or so (since I first started using it). Sometimes it pulls a couple of stories but most of the time it pulls nothing. Thanks! |
![]() |
![]() |
#2074 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2010
Device: none
|
Hi guys, I would really appreciate if I could get a custom recipe for the globe and mail business section without all the extra pictures and icons and crazy stuff... just plain text would be great:
http://www.theglobeandmail.com/repor...s/?service=rss And the Investment executive (same without the noise, just the text): http://www.investmentexecutive.com/f...eakingnews.xml If someone could, I'd also like some help as to how to do these myself. I'm completely new to programming so I know basically zero. Some good resources would be appreciated. Last edited by Daanish87; 06-11-2010 at 03:00 AM. |
![]() |
![]() |
#2075 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
http://calibre-ebook.com/user_manual...asicnewsrecipe It looks like you already have the meat of your recipe, but want to get rid of "extra pictures and icons and crazy stuff." There are 2 ways to do it. First, you can try the print_version method. See the link, but basically it means substituting a link to a clean version for your messy version. You have to find that link yourself on the site. The other is to clean up or avoid the "crazy stuff." I suggest you use FireFox and Firebug to identify what you want to remove or keep, then use keep_only_tags or remove_tags to either get only what you want, or remove the junk. Have fun and feel free to ask here for help. |
|
![]() |
![]() |
#2076 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2010
Device: none
|
Quote:
The normal URL is: http: // www .investmentexecutive.com/client/en/News/DetailNews.asp?id=53928&IdSection=146&cat=146&BIma geCI=1 The print is: http: // www. investmentexecutive.com/client/en/News/ImprimerDetail.asp?id=53928&IdSection=146&cat=146& BImageCI=1 The URLs are nearly identical. I tried messing around with it but it keeps giving me the same output. Would you be able to guide me as to what I should put for the replacement when writing the code? Thanks |
|
![]() |
![]() |
#2077 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
Try this (No guarantees - I don't have anywhere to test it right now): Code:
def print_version(self, url): return url.replace('http://www.investmentexecutive.com/client/en/News/DetailNews', 'http://www.investmentexecutive.com/client/en/News/ImprimerDetail') |
|
![]() |
![]() |
#2078 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
#2079 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
Quote:
|
|
![]() |
![]() |
#2080 |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2010
Device: none
|
There are alot of pictures and other things which cause the reader to be really slow. However, I countered this by converting the .epub to pdf, and now its smooth. So maybe I dont need to really refine it much.
With Investment executive, the writing becomes condensed into one side, and even at highest zoom, the letters cannot be read. Last edited by Daanish87; 06-11-2010 at 06:01 PM. |
![]() |
![]() |
#2081 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2010
Device: none
|
Quote:
|
|
![]() |
![]() |
#2082 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Yes it did. I just tried it. It grabbed the print link you wanted ..... of course, that's not the end of the story. You still have to make the page work. Try looking at the source of the page.
All the content you want is in there. Which road do you want to go down next - fix the non-print version or fix the print version? |
![]() |
![]() |
#2083 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2010
Device: none
|
Quote:
So I assumed the same thing with Investment Executive, I just converted it straight instead of checking the epub version, and the pdf was coming all strange, lots of images and microscopic writing. However I decided to give the epub version of IE a try, and lo and behold, it isn't causing my reader to slow down or freeze up, and in fact its very clear with minimal distractions(using the code you gave me). So I guess I should take it on a case by case basis. So far, for Globe and mail, the pdf conversion seems to work and for IE the epub version seems to work. Thanks for you help, I appreciate it. |
|
![]() |
![]() |
#2084 | |
Member
![]() Posts: 18
Karma: 10
Join Date: Jun 2010
Device: none
|
Quote:
I do have one question. I was going through the calibre page for converting rss, and in the section on 'slicing and dicing' I was wondering where the code shown is from? And am I supposed to copy that entire code into the recipe? Or is this something else? |
|
![]() |
![]() |
#2085 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Quote:
|
|
![]() |
![]() |
|
![]() |
||||
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 |