Skip to content

Instantly share code, notes, and snippets.

View kd7lxl's full-sized avatar

Tom Hayward kd7lxl

  • Infoblox
  • Tacoma, WA
View GitHub Profile
#!/usr/bin/env python
import pprint
from HTMLParser import HTMLParser
from urllib2 import urlopen
class Spider(HTMLParser):
line = []
output = []
@kd7lxl
kd7lxl / package_list_diff.py
Created June 16, 2010 20:22
Compares two text files and outputs the differing lines (like diff without the extra stuff)
#!/usr/bin/env python
from sys import argv,exit
def list_strip(list):
new_list = []
for line in list:
if not line.strip():
continue
else: