01-08-2011, 11:53 AM | #1 |
Member
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
Request: for recipe
|
01-11-2011, 05:04 PM | #2 |
Member
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
As I couldn't see any RSS feeds on their site to fetch the news, I went here:
http://www.americantowns.com/ok/enid and thought I could come at it from a different angle. I tried making a recipe (modified the AP recipe & another one) and all I get is a TOC and no articles. I used this to fetch the feed: http://www.americantowns.com/ok/enid/rss/news Any suggestions.... thanks |
01-11-2011, 09:53 PM | #3 |
Member
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
Ok, I got it working, but I don't know how to remove a DIV that's not a CLASS or ID, it's a STYLE:
Code:
<div style="margin-top:10px;padding:5px;background-color:#f5f5f5;border:1px solid #dedede;"> any help would be appreciated. |
01-12-2011, 05:59 AM | #4 |
Connoisseur
Posts: 76
Karma: 12
Join Date: Nov 2010
Device: Android, PB Pro 602
|
Try something like:
Code:
preprocess_regexps = [(re.compile(r'<div style="margin-top:10px;padding:5px;background-color:#f5f5f5;border:1px solid #dedede;">', re.DOTALL), lambda m: '')] |
01-12-2011, 09:29 AM | #5 | |
Member
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
|
Quote:
thanks Last edited by deppeler; 01-12-2011 at 10:26 AM. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Request for recipe | exdream | Calibre | 3 | 04-24-2010 10:13 AM |
Request for Recipe | ddavtian | Calibre | 2 | 11-24-2008 02:43 AM |
Yet another Recipe request.. | sherman | Calibre | 4 | 11-21-2008 04:42 AM |
Request for Recipe | girlperson1 | Calibre | 2 | 11-14-2008 10:43 PM |
Request for recipe | girlperson1 | Calibre | 2 | 11-13-2008 10:03 PM |