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

The importance of competitive programming

What is the value of competitive programming especially in the current time where LLMs can solve the majority of those problems? A good anal...