Load a webpage into a DOM. Then use Mozilla's Readbility article extraction code to get a plain text representation of the content of the webpage.
Create a Markov Chain of the writing on the page. The model is a dictionary, which contains words mapped to a Counted Set representing the words that follow that word, and their frequency. This allows PoetryBot to generate sentences that are more natural than those generated by treating all words equally.
Generate lines (strings of words of random length). These lines seed the generation of those that follow, to keep the poem on topic (for the most part)
Combine the lines and post to the page for your enjoyment!