def module_content(page, response):

    regexp = r"<!-- 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
dataset/ETHPy150Open treeio/treeio/treeio/core/ajax/rules.py/module_content