def module_content(page, response):
 regexp = '<!-- module_content -->(?P<module_content>.*?)<!-- /module_content -->'
 blocks = re.finditer(regexp, page, re.DOTALL)
 for block in blocks:
  response['module_content'] = block.group('module_content').strip()
 return response

def module_content ( page , response ) : regexp = '<!-- module_content -->(?P<module_content>.*?)<!-- /module_content -->' blocks = re . finditer ( regexp , page , re . DOTALL ) for block in blocks : response [ 'module_content' ] = block . group ( 'module_content' ) . strip ( ) return response
extract module_content .