Thread: Telegraph UK
View Single Post
Old 08-02-2013, 06:52 AM   #5
PBarwich
Junior Member
PBarwich began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jun 2013
Device: Kindle 2
Code inside quotes below:-

Code:
class AdvancedUserRecipe1228475169(BasicNewsRecipe):
    title          = u'Daily Telegraph UK'
    oldest_article = 2
    max_articles_per_feed = 20
    no_stylesheets        = True
    use_embedded_content  = False
 

    keep_only_tags = [dict(name='div', attrs={'class':'story'})]

    remove_tags  = [dict(name='div', attrs={'class':'slideshow'})]
 
   
    feeds          = [(u'Top News', u'http://www.telegraph.co.uk/news/majornews/rss')
		,(u'UK News', u'http://www.telegraph.co.uk/news/uknews/rss')
		,(u'Opinion', u'http://www.telegraph.co.uk/newsfeed/rss/opinion-dt_opinion.xml')
		,(u'Leaders', u'http://www.telegraph.co.uk/newsfeed/rss/opinion-dt_leaders.xml')
		,(u'Arts', u'http://www.telegraph.co.uk/newsfeed/rss/arts.xml')
		,(u'Books', u'http://www.telegraph.co.uk/newsfeed/rss/arts-books.xml')
		,(u'Gardening', u'http://www.telegraph.co.uk/gardening/rss')
		,(u'Travel', u'http://www.telegraph.co.uk/travel/rss')
		]
I apologise I can't remember where I got this; I certainly didn't write it! So credit to unknown third party.
PBarwich is offline   Reply With Quote