[emacs-w3m:13636] [emacs-w3m/emacs-w3m] w3m-search - does not work with DuckDuckGo (DuckDuckGo Lite) (#78)
thjwong <[email protected]> Thu, 02 Jul 2020 01:35:55 +0000 (UTC)
| Newsgroups | gmane.emacs.w3m |
|---|---|
| Message-ID | <emacs-w3m/emacs-w3m/issues/[email protected]> |
It used to work in DuckDuckGo with the following code in my dot-emacs:
(require 'w3m-search)
(setq w3m-search-default-engine "DuckDuck Go")
(add-to-list 'w3m-search-engine-alist
'("DuckDuck Go" "https://duckduckgo.com/?q=%s"))
(global-set-key (kbd "M-g M-w") 'w3m-search)
(defadvice w3m-search (after change-default activate)
(let ((engine (nth 1 minibuffer-history)))
(when (assoc engine w3m-search-engine-alist)
(setq w3m-search-default-engine engine))))
But recently DuckDuckGo redirect the search to `https://lite.duckduckgo.com/lite/` and the GET method does not work anymore:
The (correct) search result page of `https://lite.duckduckgo.com/lite/` contains no search string and its form use the POST method instead.
With a search string attached at the end of the URL, e.g. searching for 'emacsclient' with my code posted above (`https://lite.duckduckgo.com/lite/?q=emacsclient`) links of the search results become malformed, e.g. link to emacswiki's Emacsclient page will become
`https://lite.duckduckgo.com/l/?kh=-1&uddg=https%3A%2F%2Fwww.emacswiki.org%2Femacs%2FEmacsClient` instead of `https://www.emacswiki.org/emacs/EmacsClient`
Is it a bug in w3m-search or is there something w3m-search can do to make it work again?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/emacs-w3m/emacs-w3m/issues/78