From: Ihor Radchenko <yantar92@gmail.com> To: Matthew Lundin <mdl@imapmail.org>, stardiviner <numbchild@gmail.com> Cc: Org Mode <emacs-orgmode@gnu.org> Subject: Re: [Feature] add a new org-attach dispatcher command to offline save web page Date: Sat, 30 May 2020 14:09:44 +0800 [thread overview] Message-ID: <87tuzykl7b.fsf@localhost> (raw) In-Reply-To: <87h7vysqlq.fsf@fastmail.fm> > AFAICT, org-board uses the following options, which limit the archiving > to a single page and all its resources: > > wget -e robots=off --page-requisites --adjust-extension --convert-links [...] This is certainly better. I believe that wget would be a better default (with right flags). It is much more likely to be installed for average user. > You can also create a warc (web archive) file with wget, but then you > need a web archive replayer to view it, which is not exactly convenient. Interesting. I did not know about warc. Matthew Lundin <mdl@imapmail.org> writes: > Ihor Radchenko <yantar92@gmail.com> writes: > >>> As I said, PATCH welcome, I admired many times I don't have ability to build a >>> complex archive functionality on url.el or wget or curl. >> >> I have found the following solution [1] using wget: >> >> wget --mirror -p --convert-links -P ./LOCAL-DIR WEBSITE-URL >> > > I don't think --mirror is what we want this context, since that will > initiate a recursive download of the entire site. (Ironically, my IP is > now banned from a personal blog that provides a how-to for using wget > after I tried to run the above command on it.) From the wget manual: > > -m > --mirror > Turn on options suitable for mirroring. This option turns on recursion and > time-stamping, sets infinite recursion depth and keeps FTP directory listings. > It is currently equivalent to -r -N -l inf --no-remove-listing. > > AFAICT, org-board uses the following options, which limit the archiving > to a single page and all its resources: > > wget -e robots=off --page-requisites --adjust-extension --convert-links [...] > >> This will not bundle the page into a single file, but it is better than >> nothing. org-attach does not have to attach exactly one file. > > You can also create a warc (web archive) file with wget, but then you > need a web archive replayer to view it, which is not exactly convenient. > > Best, > > Matt > -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg
next prev parent reply other threads:[~2020-05-30 6:14 UTC|newest] Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-05-27 9:55 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 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 [this message] 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=87tuzykl7b.fsf@localhost \ --to=yantar92@gmail.com \ --cc=emacs-orgmode@gnu.org \ --cc=mdl@imapmail.org \ --cc=numbchild@gmail.com \ --subject='Re: [Feature] add a new org-attach dispatcher command to offline save web page' \ /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
Code repositories for project(s) associated with this 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).