Builtwith
Parser.py
from os import listdir
from os.path import isfile, join
mypath = 'reports'
onlyfiles = [f for f in listdir(mypath) if isfile(join(mypath, f))]
for x in onlyfiles:
if 'builtwith' in x:
filename = '{}/{}'.format(mypath, x)
blob = open(filename).read()
blob = blob.replace(chr(10),chr(32)).replace(chr(32)+chr(32),'').replace(chr(117)+chr(39),chr(39))
raw = eval(blob)
unique = {'host':x.split(chr(45))[0]}
for k,v in raw.iteritems():
try:
for y in raw['Technologies']:
if y['Tag'] in ['cms','framework','Web Server']:
unique[y['Tag']] = y['Name']
except:
pass
break
print unique