Function: shr-save-contents
shr-save-contents is an interactive and byte-compiled function defined
in shr.el.gz.
Signature
(shr-save-contents DIRECTORY)
Documentation
Save the contents from URL in a file.
Probably introduced at or before Emacs version 26.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/shr.el.gz
(defun shr-save-contents (directory)
"Save the contents from URL in a file."
(interactive "DSave contents of URL to directory: ")
(let ((url (get-text-property (point) 'shr-url)))
(if (not url)
(message "No link under point")
(url-retrieve (shr-encode-url url)
#'shr-store-contents (list url directory)))))