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

Action sparks passion, or it is the other way around?

Which strategy is better, to wait for passion to come, in order to take action or to take action and the passion will follow after? I believ...