Little python script that extracts text from html, optionally grouping and joining together extracted texts