(text: str)
| 89 | return ''.join(character for character in text if ord(character) < 128) |
| 90 | |
| 91 | def clean_text(text: str) -> str: |
| 92 | text = remove_html_tags(text) |
| 93 | text = normalize_whitespace(text) |
| 94 | text = remove_non_ascii(text) |
| 95 | return text |
| 96 | |
| 97 | |
| 98 | def extract_thumbnail(soup: BeautifulSoup) -> str: |
nothing calls this directly
no test coverage detected