# Identify specify areas in the text

I'd be interested in identifying various areas in the text message. Let's say I have a text containing some introduction, then there is a poem and at the end there are some urls to some web pages. I'd like to be able to break down the text into these sections and process them separately. I should be able to collect quite a few training data for each of the sections. Any ideas or references to papers would be highly appreciated! Thanks