A Python handle that automatically strips SGML tags and returns data from
specified tag start and end pairs.
Methods
|
|
__getattr__
__init__
read
readline
readlines
|
|
__getattr__
|
__getattr__ ( self, attr )
|
|
__init__
|
__init__ (
self,
handle,
tags_of_interest=[],
)
SGMLExtractor(handle, tags_of_interest )
handle is a file handle to SGML-formatted data.
tags_of_interest is a list of root names for pairs of start and end tags
|
|
read
|
read (
self,
*args,
*keywds,
)
|
|
readline
|
readline (
self,
*args,
*keywds,
)
|
|
readlines
|
readlines (
self,
*args,
*keywds,
)
|
|