Terminal Based Wikipedia
Productivity
terminal reference reader
SHOW HN2023
Terminal Based Wikipedia
The images were generated by carbon and it's auto syntax selection must have defined the whole thing to be…
github.comHow HN took it
4 positive, 16 neutral or asking, 3 mixed, 3 critical, out of 26 comments about the project. Thread score +0.06.
Execution: 0 for, 3 againstDesign: 1 for, 0 againstIdea: 1 for, 0 against
The thread, comment by comment
Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.
positive neutral or mixed critical about another commenter or something else the maker
What HN said
What people liked
Execution and terminal design look nice.
From 2 comments
The execution is really nice! But,there are already browsers and web guidelines to make this possible without specific single purpose apps. Why would I use this over for example,…
lexhart on HNNeeds a pager, otherwise looks great!
bitigchi on HN
Useful for piping output to other tools such as LLM summarizers.
From 1 comment
This is neat! Very useful to be able to pipe stdout to other tools like command-line summarization via LLMs.
ukuina on HN
Objections
Why use this over existing tools like Lynx, w3m or browser aliases.
From 2 comments
The execution is really nice! But,there are already browsers and web guidelines to make this possible without specific single purpose apps. Why would I use this over for example,…
lexhart on HNI was kinda wondering that myself. There's so many terminal based apps to keep track of, I've gotten into the habit of trying to know a core set fairly well (like…
capitainenemo on HN
Needs a pager; custom pager should be avoided in favor of $PAGER.
From 2 comments
Needs a pager, otherwise looks great!
bitigchi on HNBut please don't build a custom pager, but use $PAGER (unless this is supposed to turn into a full browser ...) so it works as expected (key bindings etc )
johannes1234321 on HN
Uses ANSI codes without checking terminal capabilities.
From 1 comment
Indeed and it would be so much better to use termcap (eg through ncurses) instead of blasting ANSI codes without checking :) some of us still use terminals
wkat4242 on HN
Scraping HTML with BeautifulSoup seems a poor choice.
From 1 comment
>beautifulsoup Really? Seriously? No better way to query the source of a page and render it on the terminal?
snvzz on HN
Requests
Section navigation and fetching specific data such as infobox values.
From 2 comments
Is there any plan for navigating sections or fetching specific data from the article? For example, a command to print Demographics or Population Density for a specific country.
xigency on HNIs there an infobox display?
fantasticfears on HN
Revision history access.
From 1 comment
Looks good. Access to the revision history for each page would be a nice feature that might work well in the terminal.
photochemsyn on HN
Windows Terminal support.
From 1 comment
Does this work on all major platforms including Windows Terminal?
qwerty456127 on HN
Fix syntax highlighting applied to article text in screenshots.
From 2 comments
Why do the screenshots show some sort of syntax highlighting applied to the article text?
supriyo-biswas on HNThe images were generated by carbon and it's auto syntax selection must have defined the whole thing to be shell code. I'll fix it in next commit. Thanks pointing it out.
0xfafafa on HN
Questions
Difference between -i and -s flags.
From 1 comment
Looks nice but a few things are a bit confusing: 1. I'm not sure what's the difference between -i and -s, they seem to work the same for a few examples I tried 2. It renders…
fishywang on HN
Whether footnoted references are shown.
From 1 comment
Does it show footnoted references?
chris_wot on HN
Whether it works on Windows and other platforms.
From 1 comment
Does this work on all major platforms including Windows Terminal?
qwerty456127 on HN
Whether it scrapes HTML or uses the API.
From 2 comments
cool! Is this scraping the HTML pages, or fetching the wikitext through the API and rendering it?
davidgerard on HNIt appears to be scraping HTML pages. https://github.com/yashsinghcodes/wik/blob/main/wik/info.py#L50
nic-waller on HN
Alternatives named
Lynx, w3m and elinks with Wikipedia URLs or shell aliases.
From 3 comments
``` cat /bin/wik #!/bin/sh lynx https://en.wikipedia.org/w/index.php?search=$1 ```
justsomehnguy on HNAlso `elinks` and `w3m`. The mobile site, https://en.m.wikipedia.org/ , looks a little better in them.
neilv on HNI was kinda wondering that myself. There's so many terminal based apps to keep track of, I've gotten into the habit of trying to know a core set fairly well (like…
capitainenemo on HN
emacs-w3m and eww in Emacs.
From 1 comment
In Emacs this can be done with emacs-w3m or eww.
pmoriarty on HN