View Single Post
Old 02-28-2010, 04:24 AM   #1508
EdBurman
Junior Member
EdBurman began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Feb 2010
Device: Sony prs-505
Observer UK - modifying Guardian recipe

For Pauliehk

My first couple of attempts at modifying the existing recipe failed, but I am pretty new to this. The key to making it work seems to be to change the soup section by replacing:

soup = self.index_to_soup('http://www.guardian.co.uk/theguardian')
with
soup = self.index_to_soup('http://www.guardian.co.uk/theobserver')

I also changed the feeds section to include the observer rss feeds and
the img source in the soup section to

img = soup.find( 'img',attrs ={'alt':'Observer digital edition'})

I'm sure there is some fine tuning needed but its a start.
EdBurman is offline