def determine_page_content_type(content):
    tags = ['<p>', '<ul>', '<h1>', '<h2>', '<h3>', '<pre>', '<br', '<table>']
    content_type = 'restructuredtext'
    content = content.lower()

    for t in tags:
        if t in content:
            content_type = 'html'

    return content_type
Attempt to determine if content is ReST or HTML
dataset/ETHPy150Open python/pythondotorg/pages/parser.py/determine_page_content_type