From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gCc8CHtSjWbTBgAAe85BDQ:P1 (envelope-from ) for ; Tue, 09 Jul 2024 15:08:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gCc8CHtSjWbTBgAAe85BDQ (envelope-from ) for ; Tue, 09 Jul 2024 17:08:43 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=catsu.it header.s=mail header.b=jNcpUGJm; 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"; dmarc=pass (policy=quarantine) header.from=catsu.it ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720537721; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=fGq7+9pVlHgTshBxb4kP+148szwBebpOIdD7lKMhkpo=; b=d5qPpXDHygSHxTGEnK+pnn35/BVJAoKCDHvbGrZ92WTJZK03R6AjXAPAK4rdHBHw1tA6ls xT1WYx2ncPACn0RYfJHOPyAtT3W48kS7IwrJLqdo5FGlzLk7rxBRs8zBD/jDR7oyQhKZTn zSXGLv67uRQGNZFt22YfJHi+Ulq/dUTmWBGNU45dD2lKS/KLU8d/JijEZJlJlbTjqQs3pD h3Wg8pN7jD+GHKOV9MNZS9QeiA0RAwySzB1aRoLJMJkfx7HssqHi7mNi4Slmoq0XHP5P/j blvjY4c249TwZdRO2oRGAjC2lKVrtQ1RsmmvcqQaxpo+oORjzRGrsh0JiNedyw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=catsu.it header.s=mail header.b=jNcpUGJm; 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"; dmarc=pass (policy=quarantine) header.from=catsu.it ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720537721; a=rsa-sha256; cv=none; b=CMVoyaQ3A/oQvDNV72pZKu9ozRKPHecXpWFxML5+KH7J8JOStTL+U0qYoQGTfaP29lhic7 f9jLfiy55kx04jGncSN9y3pwaS4tz5k4uN6NmWJmZb0+xUC0GHWelC4q3fYDkUeauOd1t2 JunDHlTKXQEEyJ3Y6F2ls+7vXlonBzga+GLYSZFm8qR+MjyBqmBIn6YuDt3ZT/4kmAibSc LQwtA1EqGmXkAisn+N4k3oOoWMwqA4gtRa6fnujwM1FesczrK3Un7B4KHdnUfBquc83aA+ zwakYtTWPI2BWhV+Aoa2PuC0ZtU4rBNw2Xe6wtzRRwCan04t3vEBE1LzdSfrFQ== 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 6E782843E for ; Tue, 9 Jul 2024 17:08:41 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRCRT-0006dV-Dt; Tue, 09 Jul 2024 11:07:43 -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 1sRCRR-0006cz-BK for emacs-orgmode@gnu.org; Tue, 09 Jul 2024 11:07:41 -0400 Received: from box.catsu.it ([46.232.250.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRCRP-0002Rr-1t for emacs-orgmode@gnu.org; Tue, 09 Jul 2024 11:07:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=catsu.it; s=mail; t=1720537654; bh=f5mpMPBqN1DBZk/kTpJLbQ+/kKa539DZu9Z6QcRBNTo=; h=From:To:Subject:In-Reply-To:References:Date:From; b=jNcpUGJm5Qaq5b86l+biXmMK8yTkvhY8XxoQwaHNf7z+39laJoYBpgYDks1Mo5fh6 nvabBmUbhvDQUFgWc0vCHRgMQX2+KrW55CwuKZmzjDmtcmsU76Xj4tnwDuDGVV7VGI ZLlWGPqE8zhDbW/rZVGwun6AONUEozmHzz5TR70eHdyYX3GfnrOElHnJHg/Sqo8uyv ReVGvra1Yd2aBgdpwt/oP8fRIpD7hVoLgAk5Iina86kc3PvwX1W0d/ulX1wEneG6ky s3Je7a0Ah+k7BOhIasJoTu3OUf7QhuLf84wCAQDP4t7okXjnLk3MxkIa3I0tjJ0iAF kFDzMlREMjhvw== Received: from authenticated-user (box.catsu.it [46.232.250.231]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by box.catsu.it (Postfix) with ESMTPSA id E70274A0270 for ; Tue, 9 Jul 2024 17:07:33 +0200 (CEST) From: Chris Keschnat To: emacs-orgmode@gnu.org Subject: Re: Capture from Firefox to Org-mode In-Reply-To: <87r0c2d75g.fsf@k-7.ch> (=?utf-8?Q?=22S=C3=A9bastien?= Gendre"'s message of "Tue, 09 Jul 2024 15:30:51 +0200") References: <87r0c2d75g.fsf@k-7.ch> Date: Tue, 09 Jul 2024 17:07:33 +0200 Message-ID: <871q42bo3u.fsf@catsu.it> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=46.232.250.231; envelope-from=chris@catsu.it; helo=box.catsu.it X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, SPF_HELO_PASS=-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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.10 X-Migadu-Queue-Id: 6E782843E X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.10 X-TUID: cT8Ea+1KNA6t S=C3=A9bastien Gendre writes: Hi, I'm not actively using this but I had it configured and just tested that it works. It might not answer you're questions directly, but I hope it help= s. > 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. This should all be possible. > * 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? Capturing the selection works. Sample capture templates: #+begin_src emacs-lisp ("p" "Protocol" entry (file+headline ,(concat my-org-dir "inbox.org") "In= box") "* %^{Title}\nSource: %u, %c\n #+BEGIN_QUOTE\n%i\n#+END_QUOTE\n\n\n%?") ("L" "Protocol Link" entry (file+headline ,(concat my-org-dir "inbox.org"= ) "Inbox") "* %? [[%:link][%:description]] \nCaptured On: %U") #+end_src > * Firefox extension for Org capture > > I have found 2 extensions for capturing to Org-mode from Firefox: > > - Org Capture (by Kosta): > https://addons.mozilla.org/fr/firefox/addon/org-capture/ > > - org-protocol (by Wojciech Siewierski): > https://addons.mozilla.org/fr/firefox/addon/org-protocol/ > > Which one do you suggest=C2=A0? I'm using this one instead. Extension: https://github.com/Stebalien/org-capture-extension Image of configured extension: https://0x0.st/XMHN.png PS: I had also used this in the past. If you're willing to have a local python script listening on a port instead of using org-protocol, it might be an alternative. https://github.com/karlicoss/grasp