<D <M <Y
Y> M> D>

For Aaron:

import urllib2
from bs4 import BeautifulSoup

url = 'http://www.poemhunter.com/best-poems/william-stafford/thinking-for-berky/'
soup = BeautifulSoup(urllib2.urlopen(url))

print soup.find(attrs="title").text
for s in soup.find(attrs="poem").strings:
    print s.strip()


[Main]

Unless otherwise noted, all content licensed by Leonard Richardson
under a Creative Commons License.