get_data.py
def remove_tags(text):
    """Return text without tags and punctuation marks, stripped"""

    output = text.replace('<br>', ' ').replace('<br/>', ' ')
    output = html.fromstring(output).text_content()
    output = output.replace('\r', '').replace('  ', ' ').strip()
    output = output.replace('...', '')

    characters_to_clean = '.,()[]?!"'

    for character in characters_to_clean:
        output = output.replace(character, '')

    return output
Return text without tags and punctuation marks, stripped
Return text without tags and punctuation marks, stripped
Return text without tags and punctuation marks stripped
def remove_tags(text):
    output = text.replace('<br>', ' ').replace('<br/>', ' ')
    output = html.fromstring(output).text_content()
    output = output.replace('\r', '').replace('  ', ' ').strip()
    output = output.replace('...', '')
    characters_to_clean = '.,()[]?!"'
    for character in characters_to_clean:
        output = output.replace(character, '')
    return output
def remove_tags ( text ) : output = text . replace ( '<br>' , ' ' ) . replace ( '<br/>' , ' ' ) output = html . fromstring ( output ) . text_content ( ) output = output . replace ( '\r' , '' ) . replace ( '  ' , ' ' ) . strip ( ) output = output . replace ( '...' , '' ) characters_to_clean = '.,()[]?!"' for character in characters_to_clean : output = output . replace ( character , '' ) return output
Return text without tags and punctuation marks, stripped
Return text without tags and punctuation marks stripped
"""Return text without tags and punctuation marks, stripped"""
text