Yes, yes, I've weighed using an xml parser instead of regular expressions, but this seems to be a simplistic enough case that it's suitable:
from BeautifulSoup import BeautifulSoup
from urllib import urlopen
tempSite = 'http://www.sumkindawebsiterighthur.com'
theTempSite = urlopen(tempSite).read()
currentTempSite = BeautifulSoup(theTempSite)
Email = currentTempSite.findAll('tr', valign="top")
print Email[0]
Currently results with:
<tr valign="top">
<td><p>Phone Number:</p></td>
<td> </td>
<td><p>706-878-8888</p></td>
</tr>
I'm trying to remove all markup (tr, td, p, would be nice too) and result:
Phone Number: 706-878-8888
My problem is over-exclusion AND multiple lines being regex'd, looking for an answer that outputs on a single line.
Email = []), is that the correct URL?