You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

tty-html

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tty-html

[Pre]tty-HTML: A CLI parser for HTML. Pretty print HTML inputs to Unix stdout.

1.0.2
pipPyPI
Maintainers
1

[Pre]tty-HTML

[Pre]tty-html: (the logo reads as: 'pookie html') A minimalist python script to pretty print html docs to unix terminal. Pipe the output of html generators to tty-html, for a neat terminal render (than a hard to decode xml dump).

pypi Release

Usage

The program is intended to be just a simple Unix CLI utility. One can specify any html file as an input or pipe an html dump to the stdin of tty-html to get a readable pretty print.

# for detailed usage
$ tty-html --help
...

# format from an html file
$ tty-html index.html
...

# format from stdin
$ curl https://some-website.com/blog -s | tty-html
...

Installation

Easy! There're three ways

1. Compiled binary

head over to the release page and download the binary. make it executable. Thats it. (optionally add it to a bin path of your choice)

2. Using PIP

If you got pip, feel free to install using

pip install tty-html

3. Build from source

If you are nerdy enough, there is a Makefile :), get a c compiler, install python3 and cython, and go for the following commands in order

# transpile script to c
make

# compile the c
make compile

for detailed use case : make help :)

  • the raw html raw image

  • the formatted one formatted

Keywords

pretty-html

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts