Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-12-2011, 11:56 AM   #1
deppeler
Member
deppeler began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Jan 2011
Device: Kindle 3
Exclamation Downloads yesterdays news

I have a recipe (below) and when I fetch the data it gives me the correct TOC but yesterdays news.
What am I doing wrong?

Spoiler:
import re
from calibre.web.feeds.recipes import BasicNewsRecipe
class AdvancedUserRecipe1289564332(BasicNewsRecipe):
title = u'Enid News and Eagle'
description = 'Latest news'
__author__ = 'Paul Deppeler'
oldest_article = 2
max_articles_per_feed = 100
use_embedded_content = False
no_stylesheets = True
language = 'en'
remove_javascript = True
extra_css = '.headline {font-size: x-large;} \n .fact { padding-top: 10pt }'
preprocess_regexps = [(re.compile(r'<div style="margin-top:10px;padding:5px;background-color:#f5f5f5;border:1px solid #dedede;">.*', re.DOTALL), lambda m:'</div>'),(re.compile(r'Read more.*', re.DOTALL), lambda m:'')]
remove_tags_before = dict(id='maincontent')
remove_tags = [dict(attrs={'class':['resource_guide', 'addthis_toolbox addthis_default_style', 'details', 'moduletable']}),
dict (id=['leftside', 'main_nav', 'announcement_area', 'footer', 'announcement_area_content_right', 'header', 'announcement_area_content_left', 'resource_guide'])]
feeds = [(u'Latest News', u'http://www.americantowns.com/ok/enid/rss/news')]

Last edited by deppeler; 01-12-2011 at 12:11 PM.
deppeler is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Built in News downloads then deletes! tgwallbank Calibre 2 08-26-2010 01:10 PM
[BUG] all news downloads fail after update to 0.7.6 the_eye Calibre 7 06-30-2010 07:39 AM
News source downloads always slow ckole Calibre 7 01-23-2010 07:48 AM
Sllooooowwwww news downloads syfr Calibre 8 01-22-2010 07:28 AM
News Downloads timing ccadi Calibre 2 01-19-2009 12:11 PM


All times are GMT -4. The time now is 04:37 PM.


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