Código Python:
Ver original#!/usr/bin/python
import re
from lxml import html
from mechanize import Browser
br = Browser()
br.set_handle_robots(False)
br.addheaders = [('User-agent', 'Firefox')]
site = br.open('http://www.nic.cl/registry/Ultimos.do?t=1d')
if site.code == 200:
code = html.fromstring(site.read())
doms = code.xpath('//*[@id="box-tablaresultados"]/table/tr')
for dom in doms:
dom = ''.join(dom.xpath('./td/div[1]/a/text()'))
print dom
Solo es cuestión de conocer xpath, no realmente de python.