SGML parsing tags and leeping track

2006-05-01 Thread hapaboy2059
Hello, I need help in using sgmlparser to parse a html file and keep track of the number of times each tag is being used. In the end of this program I need to print out the number of times each tag was seen(presumably any type of tag can be used) and the linked text. I need help in getting past

Re: SGML parsing tags and leeping track

2006-05-02 Thread hapaboy2059
could i make a global variable and keep track of each tag count? Also how would i make a list or dictionary of tags that is found? how can i handle any tag that is given? -- http://mail.python.org/mailman/listinfo/python-list