From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id qCN5M0rmj2aGkwAAe85BDQ:P1 (envelope-from ) for ; Thu, 11 Jul 2024 14:03:55 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id qCN5M0rmj2aGkwAAe85BDQ (envelope-from ) for ; Thu, 11 Jul 2024 16:03:54 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OKKM6p5G; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720706634; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=+ek7USXrIehPTRyfDw25OQ9RgjfSvmo9L2lRLGrbep8=; b=VQW61jPU0OgjJbVUspEfZgElDe4Q9kGWroxj9De3Wvfq5SOskUd+eZya0AzbvWDpZybCp1 Ql/J5z51eGrTwDvnrHYfTUuRJNAnifaMgG9NHobOmAYmOc2bmn4X9VLz0hJdG9HihHAkM3 sb2E1pYlshYnmUKpi5R14Tf77AOoV9ZfiKvaaSnObJX1Jbk9wIxpEOtGG8JfLEhM1/W8sS IKveEIlovllJky510+xENPJzxeZpS4WawUZtgh0g3gF9PWQT2gN3mTXinc1kafpo3QI7bo tum6W53PDInZeTVLgV+zrD43Z/ujWAlkzqG/mWbpzQwl8A6PH0vIgV5ehNSJ5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720706634; a=rsa-sha256; cv=none; b=RF6QVVUDCpz/aaB2EqBYLG6/YE/HKwALIBVswIfojWR2u0NusPUWQQocVIWcRLA2ZzA5VZ 6pKulcMLxQXx68Uarf0H1Q1iDDLvQ59MWAp5stAqyTKOAjaF6VlUF0L7AwzjDsj/kApfKP M/jxoqrn9jLSgY2wxK0/SJv9niP6ZF4qVUpgbClAIa+p0qQy88IBb6tSKghmS8E1bCwvix uz3uyrB9W73Ag2QMuv+ZJOPVfZdsBxvuNoo195vvsu10wGmES+YR10CenrYysWaMmkm5tB /cljDtwZJ2P0IORM3CJAtoXQ5pgIHQ0NGqdOLGE2DtUFbyfv951XneNztMIoqg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OKKM6p5G; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" 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 ABC7667C3D for ; Thu, 11 Jul 2024 16:03:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRuO3-0008Kx-8f; Thu, 11 Jul 2024 10:03:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRuNK-0006cD-Iw for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 10:02:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRuNC-0005jv-Rj for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 10:02:18 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E3ABB240101 for ; Thu, 11 Jul 2024 16:02:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1720706532; bh=+ek7USXrIehPTRyfDw25OQ9RgjfSvmo9L2lRLGrbep8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=OKKM6p5GqYWtKQwfkMRsRUuivMTn9ZpKe1eBzQVewf7qOppWvGZQe45/LBY3Ek+LZ 9UQYOEl6SZZeFK98zWyFGPSeLfXjJPten8r3WOvYapHzw3SDCxy9u5DThZNX3CZITq +bYMCM/W6zdQfnQMCEtEQNFAZkEsosseqp4KVJRq0DWsxcz8aWtK6lhfyhdh8PCkEJ almi0Hlu5huUYA1kupJgvNjmRl8gOxYek3NWJQGNlNJVIGb4iFucAzB3Q9OnNdLKJc 4xH0ugsQhTbZo6rvFTwnpK+MTBfBpnmTYtb/EGicOhpViBpb8h8r3J8GiSs9B6upfx 8rgfTX3fWQRVQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WKbyD3kN4z6tvt; Thu, 11 Jul 2024 16:02:12 +0200 (CEST) From: Ihor Radchenko To: =?utf-8?Q?S=C3=A9bastien?= Gendre Cc: "emacs-orgmode@gnu.org" Subject: Re: Capture from Firefox to Org-mode In-Reply-To: <87r0c2d75g.fsf@k-7.ch> References: <87r0c2d75g.fsf@k-7.ch> Date: Thu, 11 Jul 2024 14:03:46 +0000 Message-ID: <87frsg58l9.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.63 X-Spam-Score: -6.63 X-Migadu-Queue-Id: ABC7667C3D X-Migadu-Scanner: mx11.migadu.com X-TUID: c9/RYTyOs3xQ S=C3=A9bastien Gendre writes: > How to capture data from a web page to Org-mode=C2=A0? > > * What I need > > I want to be able to capture different kind of information=C2=A0: > > - Article, to read later > > - Book, with all its metadata (title, author, subject, etc) > > - Magazin, to buy later (title, editor, price, etc) > > - IRL event, that I want to go > > > For each case, different kind of data is needed to be extracted from the > web page and passed to Org-capture. I wrote https://github.com/yantar92/org-capture-ref to do exactly this.=20 > * Capture Protocol > > I know it exist an org-protocol for capture, but after reading the > manual (section 17.16.2 The capture protocol), there is something > I=C2=A0did not understand. > > On the URL of the capture protocol, key value pairs can be specified. > But are they a predefined set of keys, independent to the capture > template, or are they related to the capture template special words (ex: > %a)=C2=A0? > > Is it possible, with Org-protocol, to pass data to be stored into org ent= ry > properties, or an arbitrary string=C2=A0? Yes, but passing non-standard data is an undocumented feature. (It is stored in :query property that you may need to extract via %(plist-get (org-capture-get :query) :my-keyword) placeholder or something similar. > I have seen a typo in the manual "17.16.2 The capture protocol": > https://orgmode.org/manual/The-capture-protocol.html > > At the end of the first phrase, it miss a space between the "a" and > "capture". Instead of "a capture", we have "acapture". This has been already fixed in de775a36d, but thanks for the heads-up anywa= y. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at