Live data from Hacker News

All DuckDuckGo bang operators on one page

mosermichael.github.io

61–70 of 140 posts

Re: All DuckDuckGo bang operators on one page

#61
post #10

So these all just directly search for that term on the (usually substandard) internal website search box? I don't get the appeal. I want the bang to show a good/filtered SERP, not load some other site directly. (similar to a `site:x` search on Google I guess.) What I'd really like to use is a search engine that had custom ranking of domains. I'd heavily weigh it to only show Stack Exchange, Reddit, and forum posts. O…

This is niche, but honestly I search for a lot of magic cards. I get a lot of use out of `!mtg`

That's a good example where I get zero results if I misspell the search term:

https://scryfall.com/search?q=black%20lotuss

Whereas I Google or Duck for "mtg black lotuss" I'll almost certainly get the correct results. I feel like I'd just get frustrated with the much worse text parsing of each site's search field.

Although it is interesting that this "Scryfall" site that owns "!mtg" isn't on the first SERP for Google or DDG.

Re: All DuckDuckGo bang operators on one page

#62
post #10

So these all just directly search for that term on the (usually substandard) internal website search box? I don't get the appeal. I want the bang to show a good/filtered SERP, not load some other site directly. (similar to a `site:x` search on Google I guess.) What I'd really like to use is a search engine that had custom ranking of domains. I'd heavily weigh it to only show Stack Exchange, Reddit, and forum posts. O…

Personally I use !yt (YouTube), !py3 (Python 3 docs), and !w (Wikipedia) very often, and !g (Google) sometimes.

These, plus !gm and !gi (for Googles Maps, and Images respectively) feature often in my use.

Re: All DuckDuckGo bang operators on one page

#63

I wonder how they choose what is worth of a bang and what's not. Are any of the bang operators paid placements?

That's one of my motivations for writing bangin. There are some sites I want to use bangs with which are either too niche or otherwise fall foul of DuckDuckGo's rules.

https://github.com/samhh/bangin

Re: All DuckDuckGo bang operators on one page

#64

For ages I've wanted DuckDuckGo to add a "!copy" bang, which acts like the "!" operator (automatically navigates to the first search result) but instead of going to the page, it copies the link to my clipboard. There are plenty of projects I'm familiar with but don't know the canonical URL off the top of my head - when I link someone else to them I have to look up their homepage. This would make this process much fas…

I just realized I need this for myself and quickly cooked up a solution using tridactyl, ddgr, and jq that fits perfectly in my workflow. Everything is reduced to just typing `:cp ` without moving to a new tab or losing flow.

The entire function is basically this (requires Tridactyl native messenger).

  command cp js -p tri.native.run('cd ~ && ddgr --json -n 1 ' +JS_ARG + '| jq -r ".[0].url" | xclip -sel clip')
[1] https://github.com/tridactyl/tridactyl

[2] https://github.com/jarun/ddgr

[3] https://stedolan.github.io/jq/

PS: I used this tool itself to find the links for the three projects mentioned above.

Re: All DuckDuckGo bang operators on one page

#65

Earlier quoted context omitted.

I would call my use of bangs getting to a specific page on another site rather that searching another site. For instance, I get a lot of use out of the wolfram alpha bang, !wa, in those uses I'm not searching as much as I'm inputting a calculation for wolfram alpha to perform and the bang let's me skip a step by typing "!wa {quety/calculation}" into my address bar. Similarly, if ddg is your default search engine, you…

I have a similar use case with wordreference. I type '!wr wordtodefine' to get the definition of a word.

On Google I just search for "define wordtodefine" (which isn't must longer and might even be faster to type) or even just "wordtodefine" (Google seems to be pretty good at knowing whether a single-word search is likely to be looking for the definition).

Re: All DuckDuckGo bang operators on one page

#66

This is really nice! I frequently use !w - wikipedia !drs - docs.rs !http - http status codes !a - amazon !yt - youtube !usps !fedex

Maybe useful: for Amazon and Wikipedia at least (probably others), you can get country/language specific versions by appending the 2-letter ISO code:

!wde - German wikipedia

!wes - Spanish wikipedia

!ade - search on amazon.de

!auk - search on amazon.co.uk

etc.

Re: All DuckDuckGo bang operators on one page

#67

This is really nice! I frequently use !w - wikipedia !drs - docs.rs !http - http status codes !a - amazon !yt - youtube !usps !fedex

The ones that I find myself using a lot !gm - google maps !sr/!sro - type in subreddit (add o for old reddit) !so - stack overflow (i usually use it with [tag])

> !gm - google maps

!m will save you over 33% of typing... :-)

Re: All DuckDuckGo bang operators on one page

#68
post #60

Earlier quoted context omitted.

I'm not perfectly understanding of such legalities, so correct me if I am wrong, but wouldn't this be infringing on scraping territory?

Scraping may violate of Google's own acceptable use policy, but it's not illegal.

Sure, it's only okay for Google to scrape all websites, but not you scraping it. Got it.

Re: All DuckDuckGo bang operators on one page

#70
post #47

DDG should show them at the bottom of their first search result page. That way, starting a new search with a bang operator wouldn't be such a hassle, e.g. on mobile, where it takes like 7 screen-taps to restart a search with e.g. "!g" appended to it. I might actually switch to DDG if they had that.

You can add "!g" to your dictionary and initiate it with a quick swipe (e.g. I use "bang" to add it). Cool thing is, that you can add it anywhere in your query - DDG will pick it up

Cool, but I assume you still need to select the query and click it again to place the cursor, and possibly add a space, and then finally press enter (?)
Post reply on HN