import urllib import urllib2 #gets webpage into string variable url = "http://www.somedomain.com/somefile.html" req = urllib2.Request(url).read() #at this point we have the html firstParagraph = req.split("
")[1] firstParagraph = firstParagraph.split("
")[0] print firstParagraph