View Single Post
Old 01-07-2010, 08:55 PM   #1095
lorenzov
Member
lorenzov began at the beginning.
 
lorenzov's Avatar
 
Posts: 23
Karma: 12
Join Date: Jan 2010
Location: Edinburgh, UK
Device: SONY PRS600, Apple iPhone 3G
al.com recipe

Steve, the Al.com one was actually much easier!

note that i have only selected a few feeds as an example, you need to edit the recipe with a text editor to suit your needs by adding the feeds you want

i.e.
Code:
(u'Birmingham News', u'http://blog.al.com/spotnews/atom.xml')
i'm also assuming that you are not interested in the comments following the articles, but if you are then in this section:

Code:
    keep_only_tags     = [
                            dict(name='div', attrs={'class':'content_masthead'}),
                            dict(name='div', attrs={'id':'article'})                            
                        ]
swap the second line with the following:

Code:
dict(name='div', attrs={'id':['article','comment','comment reply']})

lorenzo
Attached Files
File Type: zip al.zip (793 Bytes, 181 views)
lorenzov is offline