htmlpeeker

Peek html:)


License
MIT
Install
pip install htmlpeeker==0.1

Documentation

HTMLPeeker

Requirements

  • Mac OS X
  • Chrome
  • Python3.x (Maybe it can be installed with python2.x)

Install

$ pip install htmlpeeker

Usage

On Command Line

$ python3 -c 'import sys; from peeker import peek; peek(sys.argv[1])' "<h1>xxx</h1>"

As a Library

>>> from peeker import peek
>>> peek("<h1>Hello :)</h1>")
Start Chrome

->

chrome

->

^C>>>

->

deleted

Using as a temporarily server

UseCase: peek html in an unittest

>>> from peeker import fixpeek
>>> fixpeek("<h1>Hello :)</h1>")
Open Browser and Check http://localhost:9000/kaeru_fixpeekertemp.html