jarun / ddgr

:duck: DuckDuckGo from the terminal
GNU General Public License v3.0
2.92k stars 139 forks source link

support for filtering domains (from the results) #162

Closed in-plaintext closed 6 days ago

in-plaintext commented 7 months ago

Excluding domains doesn't appear to be supported. ddgr would preferably support reading filtered domains from a file and as CLI arguments. Users may not want to see specific websites in the search results — such as platforms which can't practically be viewed without an account (e.g. Facebook, Instagram, Quora, Discord, Twitter / X) but have a high search rank and/or aren't relevant to the user.

There are filter lists cataloguing domains (example, the raw lists) which exclusively scrape information for instance from Wikipedia, Github and Stack Overflow / Exchange (the uBlock Origin -specific rules can be conveniently converted plain domain names with a script).

in-plaintext commented 4 months ago

[this issue was hidden for months due to my Github account being shadowbanned — I'll delete this reply later]

jarun commented 6 days ago

Sorry, no time to spend on this. Please raise a PR directly.