View Single Post
Old 09-02-2010, 06:05 PM   #2602
TonytheBookworm
Addict
TonytheBookworm is on a distinguished road
 
TonytheBookworm's Avatar
 
Posts: 264
Karma: 62
Join Date: May 2010
Device: kindle 2, kindle 3, Kindle fire
Quote:
Originally Posted by kiklop74 View Post
You are complicating things. This site has printable pages so just add this to your recipe:

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

    def print_version(self, url):
        return url + '/printable'
I thought that at first as well. But seems that it isn't consistent. Notice
http://auto.howstuffworks.com/auto-r...-car-feats.htm (unless i'm overlooking something)... Needless to say the multipage thing is both interesting and challenging so I'm definitely learning from you guys..
TonytheBookworm is offline