Re:DuckDuckGo as a TTY
by circularfoyers on Thursday October 21, 2021 @03:03AM
(#28941294)
Might be more apt to mention the same authors version of googler for duckduckgo, https://github.com/jarun/ddgr.
Re:DuckDuckGo as a TTY
by RileyJames on Thursday October 21, 2021 @06:07AM
(#28942429)
Those are both awesome. Are there any options to combine the two?
Re:DuckDuckGo as a TTY
by user3939382 on Thursday October 21, 2021 @06:40AM
(#28942638)
Maybe use the latter with !g
Re:DuckDuckGo as a TTY
by RileyJames on Thursday October 21, 2021 @04:00PM
(#28950103)
Oh, I guess I should be more specific. I want the results from both intertwined.
The top 5 of each, to make a top 10 (deduped).
For dev work I think this would be best.
I wonder how bash would handle that.
Re:DuckDuckGo as a TTY
by cyberbanjo on Thursday October 21, 2021 @11:16AM
(#28945657)
gotta quote to prevent shell expansion for bang iirc
I was about to say, the main issues with the DDG view is that it's all formatted in a single colour. One colour for links and one for titles is so much better on the eyes! This is a great project!
Didn't work for me so I followed the link to https://git.io/googler-no-results . It looks like it uses a screen scraper. That does not seem like a viable solution to me.
I'm a maintainer of googler (though I haven't put in much work for quite a while) and the author of the linked document. No, it doesn't use a screen scraper, and I don't know how you even got that idea.
Re:DuckDuckGo as a TTY
by Cederfjard on Thursday October 21, 2021 @07:41AM
(#28943019)
Is this perhaps a semantics issue? The linked document mentions parsing HTML, and that layout updates can break it. How would you describe the way googler operates?
Edit: Would ”web scraping” be a more apt description?
Yes, it's a scraper extracting results from HTML. Which is very different from a screen scraper...
What's the use of a text interface if selecting a link leads you to a graphical browser?
You can use whatever textual browser if you want to.
What is NNN?
Re:DuckDuckGo as a TTY
by b0afc375b5 on Thursday October 21, 2021 @06:01AM
(#28942377)
Appears to be a file manager
Aha. Thank you.
It looks like it doesnt respect $LINES (or something similar). On first try, the top 2 results scrolled off the screen.
It's a CLI, not a TUI. I put quite a bit of thought into that decision, and whether to integrate a pager. See [1]. The workarounds are (1) limit the number of results per page with -n <num>; (2) use the -r, --reverse option to show the top results last.
It would be nice if there was a way to run a terminal command without auto-scrolling. So often I run something that spits out tons of error messages, only to have to scroll back up again to find out what happened.
Also check if your terminal supports Shift-PgUp/PgDn to scroll up/down a page.
Works in gnome terminal: https://help.gnome.org/users/gnome-terminal/stable/adv-keybo...
https://github.com/jarun/googler
Screenshot of Googler in action when it's nice and clean
https://snid.es/2021OCT/YG4OXAlXg4INZWPe.png