Skip to content

Instantly share code, notes, and snippets.

@elidickinson
Created December 17, 2011 21:47
Show Gist options
  • Save elidickinson/1491511 to your computer and use it in GitHub Desktop.
Save elidickinson/1491511 to your computer and use it in GitHub Desktop.
Pretty prints HTML file
import sys
from BeautifulSoup import BeautifulSoup as bs
soup=bs(open(sys.argv[1],'r').read())
print soup.prettify()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment