'After defining a cut, I can cut parts of an HTML and return the
important sections.
:param body: The HTML response that I need to cut to obtain the useful
information.'

def _cut(self, body):

    if ((self._header_length is None) or (self._footer_length is None)):
        msg = 'You    need    to    call    _define_exact_cut()    or    _guess_cut()    beforecalling    _cut().'
        raise RuntimeError(msg)
    if ((self._header_length + self._footer_length) > len(body)):
        msg = 'Cut    algorithm    error:    len(header+footer)    >    len(body).'
        raise BodyCutException(msg)
    if (body == ''):
        om.out.debug('Called    _cut()    with    an    empty    body,    returning    an    empty    result.')
        return body
    if (self._header_length == self._footer_length == 0):
        return body
    if (self._footer_length == 0):
        return body[self._header_length:]
    else:
        return body[self._header_length:(- self._footer_length)]
