From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2OPKGWxw0F4tDQAA0tVLHw (envelope-from ) for ; Fri, 29 May 2020 02:16:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2Fy6FWxw0F5NVQAAB5/wlQ (envelope-from ) for ; Fri, 29 May 2020 02:16:12 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id BC4C094053A for ; Fri, 29 May 2020 02:16:10 +0000 (UTC) Received: from localhost ([::1]:43700 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeUZ6-0004j0-1v for larch@yhetil.org; Thu, 28 May 2020 22:16:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeUYc-0004gw-R9 for emacs-orgmode@gnu.org; Thu, 28 May 2020 22:15:39 -0400 Received: from [183.249.132.153] (port=1987 helo=localhost) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeUYb-0001pi-Il for emacs-orgmode@gnu.org; Thu, 28 May 2020 22:15:38 -0400 Received: by localhost (Postfix, from userid 1000) id C5903241AF5; Fri, 29 May 2020 10:15:28 +0800 (CST) References: <87sgflu2gw.fsf@gmail.com> <87r1v4wyy4.fsf@fastmail.fm> <87r1v4bodg.fsf@localhost> <874ks0vxpk.fsf@fastmail.fm> <875zcgugq2.fsf@localhost> <87blm71zam.fsf@fastmail.fm> User-agent: mu4e 1.4; emacs 28.0.50 From: stardiviner To: Matthew Lundin Subject: Re: [Feature] add a new org-attach dispatcher command to offline save web page In-reply-to: <87blm71zam.fsf@fastmail.fm> Date: Fri, 29 May 2020 10:15:28 +0800 Message-ID: <87sgfjsczj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-Host-Lookup-Failed: Reverse DNS lookup failed for 183.249.132.153 (deferred) Received-SPF: softfail client-ip=183.249.132.153; envelope-from=numbchild@gmail.com; helo=localhost X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/28 22:03:48 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: 53 X-Spam_score: 5.3 X-Spam_bar: +++++ X-Spam_report: (5.3 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, FSL_HELO_NON_FQDN_1=0.001, HELO_LOCALHOST=3.828, NML_ADSP_CUSTOM_MED=0.9, RDNS_NONE=0.793, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: reject X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: numbchild@gmail.com Cc: Org Mode , Ihor Radchenko Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: 1.59 X-TUID: h723q4Wd5xa2 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Matthew Lundin writes: > Ihor Radchenko 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.=20 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 u= sed to download URL file. Not for offline archiving. > > Best, > > Matt =2D --=20 [ 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 =20=20=20=20=20=20 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl7QcEAUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsOJpgf/Yzib6/loAB+N3CMY7LBKxmH/xZ7d u+isMgMlB2b9lVcC0BojwVG8Vo372Midjzu0+TJr2KuU/l9QV8xLqK90FOsLKzha y2gbCghl2ehPvIfIKfI/LUPW3NOFIq01T4RYHgpEQ2GCWBdpNZ6Hki3fnvou2YzO oIdtyablG5tZowvgRNQDNSg8XvaLTkkPqvXQUX1n7wba+buMADmns+rc3OTWBQqW BHa8HC0X0n4TIcGy/pnet7+ooJtkHT05Ua9W0SrsaQthbaoqiDrfEyirL3Izm89D rKYTo8dM7hKWLp7gQckPH6TYa8eiK0oQjp1riHa7myB2DjeWRqz2tKs2VA=3D=3D =3DJzUc =2D----END PGP SIGNATURE-----