Skip to content

Instantly share code, notes, and snippets.

@henri
Last active July 15, 2024 22:47
Show Gist options
  • Save henri/99468609f4a6e6cb1322b47f736ee4f2 to your computer and use it in GitHub Desktop.
Save henri/99468609f4a6e6cb1322b47f736ee4f2 to your computer and use it in GitHub Desktop.
wrapper script for rdrview to use links2
#!/bin/bash
# about : this is a wrapper script which will run links2 (CLI terminal) with rdrview
# a program which will work like reader view on a modern web browser
# more information on links2 : http://links.twibright.com/about.php
# more information on rdview : https://github.com/eafer/rdrview
# configure proxy servers
# export http_proxy="http://host:port"
# export https_proxy="http://host:port"
# run reader view using links2
rdrview -B links2 "${1}"
#!/bin/bash
# about : this is a wrapper script which will run curl (CLI terminal) with reader
# a program which will work like reader view on a modern web browser
# more information on reader : https://github.com/mrusme/reader
# more information on curl : https://curl.se
# configure proxy servers
# export http_proxy="http://host:port"
# export https_proxy="http://host:port"
# run something close to reader view using less for pagination (basic no asci escape sequences)
# curl -o - "${1}" 2>/dev/null | reader -o - | less
# run something close to reader view using less for pagination (more fancy ascii escape sequences)
curl -o - "${1}" 2>/dev/null | reader - | less -R
#!/bin/bash
# about : this is a wrapper script which will run links2 (CLI terminal) with rdrview
# a program which will work like reader view on a modern web browser
# more information on links2 : http://links.twibright.com/about.php
# more information on rdview : https://github.com/eafer/rdrview
# configure proxy servers
# export http_proxy="http://host:port"
# export https_proxy="http://host:port"
# run something close to reader view using links2
links2 -dump "${1}"
# notes :
# if you are using w3m or linx you can also use -dump on lynx you can add -nolist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment