View Single Post
Old 04-09-2011, 06:53 AM   #4
aerodynamik
Enthusiast
aerodynamik doesn't litteraerodynamik doesn't litter
 
Posts: 43
Karma: 136
Join Date: Mar 2011
Device: Kindle Paperwhite
Quote:
Originally Posted by aerodynamik View Post
e.g. extra line breaks removed, download additional online sections that are not online every day.
This is easier than I thought.

To remove extra line brikes add 'br' to the 2nd dictionary in remove_tags:
Code:
  remove_tags        =[
                         dict(attrs={'class':'hidePrint'})
                        ,dict(name=['link','object','embed','base','iframe','br'])
                        ]
To add more feeds, just add them to the list of feeds like this
Code:
              ,(u'Muenchen City' , INDEX + 'M%FCnchen+City/' )
              ,(u'Wochenende'    , INDEX + 'SZ+am+Wochenende/' )
I was worried about that one might have to check first if the actual page would exist, but it just results in an empty section that is removed automatically.

This is great. I'll test some more, complete the list of feeds and would then post the complete updated recipe here.

Hope that helps anyone, have a good weekend.

- aerodynamik
aerodynamik is offline   Reply With Quote