Quote:
Originally Posted by JFS-NMF
I am having great difficulty creating recipes. Most recently, I have tried the following:
remove_tags = [dict(name='div', attrs={'class':'clearfix'})]
remove_tags_after = [dict(name='div',attrs={'id':'wrapper'})]
Neither line has any effect on that is produced; no tags are removed.
Is there some other syntax or element required in the recipe for for these lines to work?
|
Post your full recipe, inside CODE tags, and preferably also inside SPOILER tags and I'll take a look. Offhand, I suspect an indent error, or possibly a typo or misunderstanding of the page source html. In particular, remove_tags_after, can be tricky to get right.