View Single Post
Old 01-17-2011, 06:23 PM   #7
Tegan
Connoisseur
Tegan began at the beginning.
 
Posts: 59
Karma: 10
Join Date: Jan 2011
Device: Kindle 1st Gen, Kindle 3 SO
I'm getting invalid syntax when I try to put them into my recipe.

Code:
remove_tags = []
    remove_tags.append(dict(name='div', attrs={'id':['liveblog_heading','liveblog_container','chicklets','sidebar_digg_block']}))
    remove_tags.append(dict(name='div', attrs={'class':lambda x and 'reaction_pannel_v3' in x}))
    remove_tags.append(dict(name='div', attrs={'class':lambda x and 'facebookvote_reaction' in x}))
or

Code:
dict(name='div', attrs={'id':['liveblog_heading','liveblog_container','chicklets','sidebar_digg_block']}),
                      dict(name='div', attrs={'class':lambda x and 'reaction_pannel_v3' in x}),
                      dict(name='div', attrs={'class':lambda x and 'facebookvote_reaction' in x}),
What stupid thing am I doing?
Tegan is offline   Reply With Quote