Thursday, April 23, 2026

Read Html inside terminal

This can be done by using curl and pandoc.

The command looks like this:

    curl <url> | pandoc -f html -t plain | less

After that you can go up and down with j and k keys. With this command you can read directly in the terminal. If you want to store the information in a text file, you could use this command:

    curl <url> | pandoc -f html -t plain > file.txt

Where file.txt is the name of the file where the information is stored.

To get a complete list of output formats supported by pandoc, you can use the command:

    pandoc --list-output-formats


No comments:

Post a Comment

Search git users

Let's say we want to change our git username to another one. Instead of checking manually if the username is already taken, we can autom...