Exemplo n.º 1
0
 def __init__(self, httpResponse, verbose=0):
     self._tagsContainingURLs =  ('go', 'a','anchor','img', 'link', 'script', 'iframe', 'object',
             'embed', 'area', 'frame', 'applet', 'input', 'base',
             'div', 'layer', 'ilayer', 'bgsound', 'form')
     self._urlAttrs = ('href', 'src', 'data', 'action' )
     
     sgmlParser.__init__(self, httpResponse, verbose)
Exemplo n.º 2
0
    def __init__(self, httpResponse, normalizeMarkup=True, verbose=0):
        self._tagsContainingURLs = (
            "a",
            "img",
            "link",
            "script",
            "iframe",
            "object",
            "embed",
            "area",
            "frame",
            "applet",
            "input",
            "base",
            "div",
            "layer",
            "ilayer",
            "bgsound",
            "form",
        )
        self._urlAttrs = ("href", "src", "data", "action")

        # An internal list to be used to save input tags that are found outside
        # of the scope of a form tag.
        self._saved_inputs = []
        self._textareaData = ""
        self._optionAttrs = []
        # Save for using in form parsing
        self._source_url = httpResponse.getURL()

        sgmlParser.__init__(self, httpResponse, normalizeMarkup, verbose)
Exemplo n.º 3
0
 def __init__(self, httpResponse, normalizeMarkup=True, verbose=0):
     self._tagsContainingURLs =  ('a', 'img', 'link', 'script', 'iframe', 'object',
             'embed', 'area', 'frame', 'applet', 'input', 'base',
             'div', 'layer', 'ilayer', 'bgsound', 'form')
     self._urlAttrs = ('href', 'src', 'data', 'action' )
     
     # An internal list to be used to save input tags that are found outside
     # of the scope of a form tag.
     self._saved_inputs = []
     self._textareaData = ""
     self._optionAttrs = []
     # Save for using in form parsing
     self._source_url = httpResponse.getURL()
     
     sgmlParser.__init__(self, httpResponse, normalizeMarkup, verbose)