Module io

Module io 

Source
Expand description

I/O utilities for loading text from various sources.

Enums§

ContentType
Detect the content type of text (plain text, HTML, etc.)

Functions§

detect_content_type
download_text_from_url
Download text content from a URL
extract_text_from_html
Extract plain text from HTML content (basic implementation)
is_url
Check if a string is a URL (starts with http:// or https://)
load_text_from_file
Load text from a file path
normalize_text
Clean and normalize text content
save_text_to_file
Save text to a file path