예제 #1
0
 def __init__(self, http_resp):
     
     # An internal list to be used to save input tags found
     # outside of the scope of a form tag.
     self._saved_inputs = []
     # For <textarea> elems parsing
     self._textarea_tag_name = ""
     self._textarea_data = ""
     # For <select> elems parsing
     self._selects = []
     # Save for using in form parsing
     self._source_url = http_resp.getURL()
     # Call parent's __init__
     SGMLParser.__init__(self, http_resp)
예제 #2
0
 def __init__(self, httpResponse):
     self._select_tag_name = ""
     SGMLParser.__init__(self, httpResponse)