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

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


Thread Tools Search this Thread
Old 02-18-2011, 09:38 AM   #1
mufc doesn't littermufc doesn't litter
Posts: 99
Karma: 170
Join Date: Nov 2010
Location: Airdrie Alberta
Device: Sony 650
Failing UFC Feed

I have a recipe for the UFC that until this week worked fine. I have not changed anything but now the feed fails with this message.
TypeError('expected string or buffer',)
I can open the rss link in my browser. Any ideas ?
class AdvancedUserRecipe1290141997(BasicNewsRecipe):
title = u'UFC'
timefmt = ''
oldest_article = 7
max_articles_per_feed = 100

use_embedded_content = False
no_stylesheets = True

remove_javascript = True
extra_css = '''
h1{font-family:Georgia,serif; font-weight:bold;font-size:large;}
h2{font-family:Georgia,serif; font-weight:bold;font-size:large;}

keep_only_tags =[dict(name='div', attrs={'class':'main-section'})]
remove_tags = [dict(name='div', attrs={'class':['active tab',' tab last','byline','comment-entry','bottom-comments','item-description ','media-item','intro']}),
dict(name='div', attrs={'id':['','',]}),

feeds = [(u'News', u'')]

def preprocess_html(self, soup):
for alink in soup.findAll('a'):
if alink.string is not None:
tstr = alink.string
return soup
mufc is offline   Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stanza failing at Fictionwise? Neil Reading and Management 3 11-06-2010 07:28 PM
all file conversions now failing moransami Calibre 2 08-07-2010 06:23 PM
Failing to download Slate shoukyd Calibre 2 04-02-2010 11:46 PM
Update 2.3 failing geekraver Kindle Developer's Corner 7 11-28-2009 05:40 PM

All times are GMT -4. The time now is 04:38 PM. is a privately owned, operated and funded community.