Quote:
Originally Posted by Doitsu
you could also manipulate the attrs property:
Code:
new_tag = soup.new_tag('h1')
new_tag.attrs = {'class': 'invis big', 'id': 'page_i'}
|
Wow! Didnt thought that that it is so easy... i read the manual so often to find a function to do that