07-02-2010, 05:08 AM | #2221 | |
Zealot
Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
|
|
07-02-2010, 08:14 AM | #2222 |
Big Poppa
Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
|
The Economist seems to have added an annoying "related items" in their print view. This is annoying since it is usually right in the center of an article. I've amended the recipe with the following tag, which removes the related items div. I suggest this gets added into the main distribution recipe, as I can't imagine it's useful to have those links there.
remove_tags = [dict(name=['script', 'noscript', 'title', 'iframe', 'cf_floatingcontent']), dict(attrs={'class':['dblClkTrk', 'ec-article-info']}), dict(name='div', attrs={'class':'related-items'})] |
Advert | |
|
07-02-2010, 08:55 AM | #2223 |
Member
Posts: 12
Karma: 10
Join Date: Jun 2010
Device: Nook
|
|
07-02-2010, 09:43 AM | #2224 | |
Zealot
Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
Last edited by rty; 07-03-2010 at 06:17 AM. |
|
07-02-2010, 11:42 AM | #2225 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
New (updated) recipe for Foreign Policy:
Last edited by kiklop74; 07-02-2010 at 01:04 PM. |
Advert | |
|
07-02-2010, 12:23 PM | #2226 |
Member
Posts: 12
Karma: 10
Join Date: Jun 2010
Device: Nook
|
|
07-02-2010, 12:43 PM | #2227 |
creator of calibre
Posts: 43,858
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
@bobbysteel: The related links are useful on readers that support web browsing.
|
07-02-2010, 01:05 PM | #2228 |
Guru
Posts: 800
Karma: 194644
Join Date: Dec 2007
Location: Argentina
Device: Kindle Voyage
|
I updated the post sorry for the mistake.
|
07-02-2010, 02:15 PM | #2229 | |
Big Poppa
Posts: 110
Karma: 10
Join Date: Jul 2010
Device: Nook
|
Quote:
Thanks again for all the work you've put in to this Kovid! |
|
07-02-2010, 04:03 PM | #2230 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Nook
|
Help - Two Issues
I have not had luck finding a solution within my searches (probably not using the correct terminology.)
I have successfully modified the Cincinnati Enquirer recipe as the basis of my Appleton Post Crescent recipe as they both used similar web templates. However, I am not having luck with the following... 1. Remove the Additional Information box that comes up after a couple of paragraphs of each article. I have tried Quote:
2. Remove any RSS feeds that start with the word "Photo" or "Photos:" Any guidance that you can give would be very helpful. |
|
07-02-2010, 05:06 PM | #2231 | ||
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
I enjoy answering these little puzzles, but it's a lot easier if you provide a link to the page that you are having trouble with, and a copy of the recipe you're using.
Here you are asking why this doesn't match something. Usually, that would be impossible without a link to the "something," but I do see an error in this. Quote:
I assume you wanted to delete everything in the <div> tag, but you reversed the "everything." it should be ".*" not "*." Quote:
For articles, I used to think that filter_regexps would do that job, but I never got it to work. Maybe it only works on recursed links, not the main article link. |
||
07-02-2010, 07:29 PM | #2232 | |
Junior Member
Posts: 4
Karma: 10
Join Date: Jul 2010
Device: Nook
|
Starson17... thanks for responding.
The recipe I am using is the following (modified with your suggested change, even if it was unsuccessful). Hope I'm not violating etiquette by posting the code. Quote:
And yes, I meant articles. Here is their Local News RSS Feed... http://www.postcrescent.com/apps/pbc...l.pbs&mime=xml As of now, there were a couple of "Photos: ..." Thanks in advance. [/LIST] |
|
07-03-2010, 04:15 AM | #2233 |
Zealot
Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Recipe for BBC Chinese
Language: Chinese (Simplified) PS. Tested OK on B&N Nook. Last edited by rty; 07-03-2010 at 06:18 AM. |
07-03-2010, 06:14 AM | #2234 | |
Zealot
Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Quote:
Language: Chinese (Traditional) Tested OK on B&N Nook e-reader. Updated: Recipe updated to remove the hidden/bogus tab character that prevented the recipe to be imported into Calibre. Last edited by rty; 07-04-2010 at 10:47 AM. |
|
07-03-2010, 10:32 AM | #2235 |
Zealot
Posts: 108
Karma: 6066
Join Date: Apr 2010
Location: Singapore
Device: iPad Air, Kindle DXG, Kindle Paperwhite
|
Recipe for China Economic Net Magazine
Tested OK B&N Nook Language: Chinese (Simplified) Last edited by rty; 07-03-2010 at 11:08 AM. |
|
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 |