Skip to content

Instantly share code, notes, and snippets.

@davidthewatson
Created August 21, 2014 23:13
Show Gist options
  • Select an option

  • Save davidthewatson/997ba439787d1a78de0e to your computer and use it in GitHub Desktop.

Select an option

Save davidthewatson/997ba439787d1a78de0e to your computer and use it in GitHub Desktop.
write a hacked index.html for a bunch of screenshots
In [64]: lines = []
In [65]: l = glob.glob('/home/watson/Downloads/attorney_master/*.png')
In [66]: for file in l:
line = '<h3>'+file+'</h3>'+'<img style="page-break-after:always;" src="' + file + '"</img>'
lines.append(line)
....:
In [67]: f = open('/home/watson/Downloads/attorney_master/index.html', 'w')
In [68]: f.writelines(lines)
In [69]: f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment