From 02a78c1c6092f5c7bd9d0b608e75a8982ef0fc09 Mon Sep 17 00:00:00 2001 From: Nelson Elhage Date: Thu, 31 Dec 2009 12:23:03 -0500 Subject: [PATCH] Remove old import.py. --- import.py | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 import.py diff --git a/import.py b/import.py deleted file mode 100755 index 54edbe8..0000000 --- a/import.py +++ /dev/null @@ -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) -- 2.39.5