From: stardiviner <numbchild@gmail.com>
To: Matthew Lundin <mdl@imapmail.org>
Cc: Org Mode <emacs-orgmode@gnu.org>, Ihor Radchenko <yantar92@gmail.com>
Subject: Re: [Feature] add a new org-attach dispatcher command to offline save web page
Date: Fri, 29 May 2020 10:15:28 +0800 [thread overview]
Message-ID: <87sgfjsczj.fsf@gmail.com> (raw)
In-Reply-To: <87blm71zam.fsf@fastmail.fm>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Matthew Lundin <mdl@imapmail.org> writes:
> Ihor Radchenko <yantar92@gmail.com> writes:
>
>> My view on this is bare-bones download, in a spirit of org-attach
>> itself. There is already 'url method in org-attach-attach, but it is
>> hard-coded to url-retrieve-synchronously. It would be handy if user
>> could configure alternative retrievers (like monolith, wget, curl, or
>> some user-defined function).
>
> Thanks. I'm learning about this for the first time after using
> org-attach for years! I have no idea why I've never noticed it.
>
>> Note that monolith does not crawl the website. It only collects
>> everything needed to show the page as you see it in browser into single
>> html file. This behaviour is what one expects to obtain when saving a
>> full web-page from browser.
>
> Agreed. This looks like the way to go. Keep it simple and abstract the
> call to url-copy-file to allow the user to configure the command for
> downloading the page/file.
I tried to adopt my code to fit this design. But later, I realized this two
things are totally different functionality. url-retrieve-synchronously is used
to download URL file. Not for offline archiving.
>
> Best,
>
> Matt
- --
[ stardiviner ]
I try to make every word tell the meaning that I want to express.
Blog: https://stardiviner.github.io/
IRC(freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
-----BEGIN PGP SIGNATURE-----
iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7QcEAUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsOJpgf/Yzib6/loAB+N3CMY7LBKxmH/xZ7d
u+isMgMlB2b9lVcC0BojwVG8Vo372Midjzu0+TJr2KuU/l9QV8xLqK90FOsLKzha
y2gbCghl2ehPvIfIKfI/LUPW3NOFIq01T4RYHgpEQ2GCWBdpNZ6Hki3fnvou2YzO
oIdtyablG5tZowvgRNQDNSg8XvaLTkkPqvXQUX1n7wba+buMADmns+rc3OTWBQqW
BHa8HC0X0n4TIcGy/pnet7+ooJtkHT05Ua9W0SrsaQthbaoqiDrfEyirL3Izm89D
rKYTo8dM7hKWLp7gQckPH6TYa8eiK0oQjp1riHa7myB2DjeWRqz2tKs2VA==
=JzUc
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2020-05-29 2:16 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-27 9:55 [Feature] add a new org-attach dispatcher command to offline save web page stardiviner
2020-05-28 2:55 ` Matthew Lundin
2020-05-28 5:49 ` Ihor Radchenko
2020-05-28 6:39 ` stardiviner
2020-05-28 14:03 ` Ihor Radchenko
2020-05-28 16:00 ` stardiviner
2020-05-28 18:16 ` Ihor Radchenko
2020-05-28 16:19 ` Matthew Lundin
2020-05-28 17:11 ` Ihor Radchenko
2020-05-28 22:15 ` Matthew Lundin
2020-05-29 2:15 ` stardiviner [this message]
2020-05-29 2:06 ` stardiviner
2020-05-29 2:03 ` stardiviner
2020-05-29 2:17 ` Ihor Radchenko
2020-05-29 6:16 ` stardiviner
2020-05-29 15:33 ` Matthew Lundin
2020-05-29 16:32 ` stardiviner
2020-05-30 6:09 ` Ihor Radchenko
2020-05-28 6:37 ` stardiviner
2020-05-28 6:40 ` stardiviner
2020-05-28 22:24 ` Samuel Wales
2020-05-29 2:23 ` [PATCH updated] " stardiviner
2020-05-29 2:27 ` stardiviner
2020-06-02 12:20 ` Bastien
2020-06-02 14:06 ` stardiviner
2020-06-02 14:26 ` Bastien
2020-06-02 14:40 ` stardiviner
2020-06-03 15:10 ` Bastien
2020-06-03 23:34 ` stardiviner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sgfjsczj.fsf@gmail.com \
--to=numbchild@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mdl@imapmail.org \
--cc=yantar92@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).