i need using ip address to get content for example ip address = 157.123.22.11 i need get the organization value Zenith Data Systems
<td>
Zenith Data Systems</td>
</tr>
<tr class="odd">
<th>Organization:</th>
<td>
Zenith Data Systems</td>
</tr>
</table>
i using urllib2 to get html content, the code from some friends like
import urllib2
import lxml.html as lh
req = urllib2.Request("http://www.ip-adress.com/ip_tracer/157.123.22.11", headers={'User-Agent' : "Magic Browser"})
html = urllib2.urlopen(req).read()
doc=lh.fromstring(html)
print ''.join(doc.xpath('.//*[@class="odd"]')[-1].text_content().split())
but it shows import lxml.html as lh ImportError: No module named lxml.html. So can you give me solution to print the organization name in website, directly get the website content without any new installation like install lxml, my Python is 2.4.3 version
Organization:ZenithDataSystems.from lxml import html as lhimport lxml.html as lhdoesn't?