Remove old import.py.

This commit is contained in:
Nelson Elhage 2009-12-31 12:23:03 -05:00
parent a70292a972
commit 02a78c1c60
1 changed files with 0 additions and 15 deletions

View File

@ -1,15 +0,0 @@
#!usr/bin/python
from lxml import html
import yaml
tree = html.fromstring(open('/tmp/iron-blogger.html').read())
who = {}
for tr in list(tree.xpath('//tr'))[1:]:
username = str(tr.xpath('td[1]/tt/text()')[0])
links = tr.xpath('td[2]/a')
links = [(l.text, l.attrib['href']) for l in links]
start = str(tr.xpath('td[3]/text()')[0]).strip()
who[username] = dict(links=links, start=start)
print yaml.safe_dump(who)