08-03-2011, 10:37 AM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Aug 2011
Device: Kindle 3
|
Modifying different feeds in one recipe
Hello, I've just bought a Kindle 3, and am really enjoying using it with calibre to read news and things. I have been trying to create a news source that combines the various blogs I like to read, and email it to my Kindle. I have managed to do this with the following recipe:
Spoiler:
However, I want to add some more feeds to this recipe, but they need modification to be readable. For example, the Spectator blog works this code: Spoiler:
Is there anyway I can modify different feeds within the same recipe? So I can make the 'keep_only_tags' for the Spectator blog not affect the other feeds? I hope this makes sense! I'd be really grateful for any help anyone could offer, Cheers |
08-03-2011, 01:27 PM | #2 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
It's my understanding that 'keep_only_tags' is applied at a very early processing stage, so you can't make them apply to only one feed. However, you can process the feeds separately with Beautiful Soup and use extract() to keep the tags of interest. Another option would be to remove the tags not of interest. If you define the tags to be removed carefully, you may be able to leave the tags you want in multiple feeds.
|
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Recipe for Reading Blog Feeds possible ? | markwaters | Recipes | 6 | 06-22-2011 12:55 PM |
One Recipe, Multiple Feeds, Different Printer-Friendly Subs | DTM | Recipes | 9 | 02-11-2011 01:04 PM |
Modifying column display | ccayer | Calibre | 11 | 05-11-2010 06:18 AM |
Help modifying LRFTools | Demented | LRF | 0 | 08-30-2009 02:03 PM |
Modifying Headsets | iggypop | Lounge | 0 | 03-05-2007 05:31 PM |