cheng wrote:
> hi,all
>
> if the html like:
>
>
>
> if i use:
> def handle_starttag(self, tag, attrs):
> if tag == 'meta':
>self.attr = attrs
> self.headers += ['%s' % (self.attr)]
> self.attr = ''
> will get the output:
> [('name', 'description'), (
hi,all
if the html like:
if i use:
def handle_starttag(self, tag, attrs):
if tag == 'meta':
self.attr = attrs
self.headers += ['%s' % (self.attr)]
self.attr = ''
will get the output:
[('name', 'description'), ('content', 'a test page')]
[('name', 'keyw