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 07-13-2012, 03:44 AM   #1
us06154
Member
us06154 began at the beginning.
 
us06154's Avatar
 
Posts: 11
Karma: 10
Join Date: Jun 2012
Location: London, Ontario
Device: KOBO wi-fi
Request: Sunday Times

Hello,

Would someone be kind enough to figure out why this recipe wouldn't work for the following feeds: http://sundaytimes.lk/RSS/RSSIndex.html

========== Recipe =============
class SundayTimes(BasicNewsRecipe):
cover_url = 'http://www.johnsilva.ca/covers/stimescov.jpg'
title = u'Sunday Times'
author = 'News Articles'
oldest_article = 10
max_articles_per_feed = 100
timefmt = ' [%Y, %m %d, %a]'
pubisher = 'Sunday Times'
description = 'Sunday News'
category = 'News, Sri Lanka'
remove_javascript = True
use_embedded_content = False
no_stylesheets = True
language = 'en_CA'
encoding = 'utf-8'
conversion_options = {'linearize_tables':True}

feeds = [
(u'News', u'http://sundaytimes.lk/RSS/news.xml'),
(u'Plus', u'http://sundaytimes.lk/RSS/plus.xml'),
(u'Magazine', u'http://sundaytimes.lk/RSS/magazine.xml')
]

keep_only_tags = [
dict(name='div', attrs={'id':'article'}),
]
remove_tags = [
dict(name='div', attrs={'id':'commentsBottom'}),
dict(name='div', attrs={'class':['leftBox','bottomBox clear']}),
dict(name='ul', attrs={'class':'tabs dl contentSwap'}),
]
remove_tags_after = [
dict(name='div', attrs={'class':'bottomBox clear'}),
]
===== End Recipe =======

Thanks..
us06154 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Request Times of Malta JCSullivan Recipes 0 04-21-2012 05:18 AM
Interesting listing in Sunday Times Culture Magazine for pricing suecsi General Discussions 0 01-04-2011 08:23 AM
NY Times Sunday Magazine ? MichaelMSeattle Recipes 2 11-18-2010 02:49 PM
NY Times recipe -- request? maxbookworm Calibre 2 07-21-2010 04:07 PM
The Sunday Times:Google makes a grab for e-books Kris777 News 8 03-29-2009 01:18 PM


All times are GMT -4. The time now is 07:54 AM.


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