Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 01-08-2011, 11:53 AM   #1
deppeler
Member
deppeler began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
Request: for recipe

I would like a recipe for:
www.enidnews.com


thanks
deppeler is offline   Reply With Quote
Old 01-11-2011, 05:04 PM   #2
deppeler
Member
deppeler began at the beginning.
 
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
deppeler is offline   Reply With Quote
Advert
Old 01-11-2011, 09:53 PM   #3
deppeler
Member
deppeler began at the beginning.
 
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;">
It's the 'For more information about what's going on...........' section.

any help would be appreciated.
Attached Files
File Type: zip enid_news.zip (674 Bytes, 216 views)
deppeler is offline   Reply With Quote
Old 01-12-2011, 05:59 AM   #4
miwie
Connoisseur
miwie began at the beginning.
 
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: '')]
miwie is offline   Reply With Quote
Old 01-12-2011, 09:29 AM   #5
deppeler
Member
deppeler began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
Quote:
Originally Posted by miwie View Post
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: '')]

thanks

Last edited by deppeler; 01-12-2011 at 10:26 AM.
deppeler is offline   Reply With Quote
Advert
Reply


Forum Jump

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


All times are GMT -4. The time now is 05:47 PM.


MobileRead.com is a privately owned, operated and funded community.