Show HN: Terminal Based Wikipedia
github.com
github.com
Traceback (most recent call last):
File "/usr/bin/fetch", line 33, in <module>
sys.exit(load_entry_point('yashsinghcodes==1', 'console_scripts', 'fetch')())
File "/usr/bin/fetch", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
File "/usr/local/lib/python3.7/dist-packages/importlib_metadata/__init__.py", line 947, in distribution
return Distribution.from_name(distribution_name)
File "/usr/local/lib/python3.7/dist-packages/importlib_metadata/__init__.py", line 538, in from_name
raise PackageNotFoundError(name)
importlib_metadata.PackageNotFoundError: No package metadata was found for yashsinghcodesYou're using 3.7 here.
I'm running Debian so... of course my version is old.
If you have Firefox, go to View > Page Style, and click on "No Style".
The only downsides are that the search box is less convenient, and there's no preview-on-hover.
The latter is not very helpful on image-based threads but is excellent for text-rich threads (like askreddit). The gopher interface to wikipedia is surprisingly full-featured; I love it.
Any ideas why it's missing the first paragraph? I didn't spot a page revision without it.
The markup behind that article isn't terribly complicated, but the parser isn't perfect either. For example: https://gopherpedia.com/gopherpedia.com/Gustave_Dore has some glitches in the lead sentence.
My suspicion was that it's getting confused by the line above the intro, but I pasted the article's source code into Wikipedia:Sandbox and gopherpedia read the intro just fine. Strange!
- https://gopherpedia.com/gopherpedia.com/Belling_the_Cat
- https://gopherpedia.com/gopherpedia.com/Belling%20the%20Cat
Without underscores in the URL, the first paragraph disappears. Bizarre.
$ port search gopher
bombadillo @2.3.3_2 (net)
Bombabillo is a non-web client for the terminal, supporting Gopher, Gemini and much more.
kristall-devel @20211120 (net)
Small-Internet Browser for Gemini, Gopher, Finger & HTTP
phetch @1.1.0 (net)
A terminal client designed to help you quickly navigate the gophersphere.
vf-1 @0.0.11_1 (net, python)
command-line gopher client$ python3 setup.py install Traceback (most recent call last): File "/home/x/git/fetch/fetch/setup.py", line 12, in <module> exec(open("fetch/__version__.py").read()) FileNotFoundError: [Errno 2] No such file or directory: 'fetch/__version__.py'
It is actually sensible to stick to the interface that the majority of users are using, because that interface is the least likely to break. Spontaneous API key hoop-jumping is a form of breakage.
I'm not that informed, but intuitively, I'd doubt that.
As general advice it's only ok, because a) the details of served HTML can change a great deal and b) some APIs might have this problem, some are unlikely to. Wikipedia is an extreme example of the latter.
I'd suggest wp as prefix in the command name. Eg: wpget, wpfetch would work.
Just call this "wikipedia".
Let's just name stuff for what their stated purpose is, instead of trying to invent "maybes" and name it after that.
I am already out --> []
It's just some PHP (eww) blog software.
The (completely invaluable) shell command is "wp".
Kidding - although an API for Morrowind would be neat...
Maybe mwfetch (MediaWiki fetch)?
Should have named it "wordle," instead. jk. But there are not a lot of w-names. For example, "wi" is not taken, seems the most obvious name for this, and is very attractive for the command line; "wik" is almost as good. I wish I was a fly on the wall when whomever came up with this name said, "yeah, we'll call it Coca-Cola! That's original!"
Why would you even want lynx or w3m when curl/netcat already exists and allows you to view text on the commandline from http/s servers? Because it's more comfortable for you. Just like this tool is more comfortable for you if you just want to visit Wikipedia articles in the commandline.
Some tools are specialized, I'm not sure why you think that's such a bad thing. Otherwise we'd all use netcat to view websites, then you can read most protocols too, not just http/s.
This tool being specialized to do this one job doesn't mean it's automatically better at it than one with a wider range of functions. For example, in a Wikipedia-only browser you can't open references (without using another application) which arguably results in worse UX.