All pastes #903061 Raw Edit

Mine

public python v1 · immutable
·published 2008-02-13 23:21 UTC
rendered paste body
import urllibimport urllib2#gets webpage into string variableurl = "http://www.somedomain.com/somefile.html"req = urllib2.request(url).read()#at this point we have the htmlfirstParagraph = req.split("<p>")[1]firstParagraph = firstParagraph.split("</p>")[0]print firstParagraph