From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8GHYL1pHkGZURwAA62LTzQ:P1 (envelope-from ) for ; Thu, 11 Jul 2024 20:58:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 8GHYL1pHkGZURwAA62LTzQ (envelope-from ) for ; Thu, 11 Jul 2024 22:58:02 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720731482; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=4F6qUnLcC2nPpB9WdRRhPcCcmFuawTm6T6ThtFi5l64=; b=UKed9NsTDUXaIowjI9qzeaaKLKjnYZTKO/yPK9wsT7JCr98qtK0a0spfVR3EVojbnn9mev 9K5QDR4UaAgoWRBDSqQy5nK7M3QqYxVUepEnz3PB82mcZJ4M5s1NEmG0LVHgRfTiaXt9DQ ZSupHgwQ0AvKSdWklcNqSLSh11fvb9jzR3jXLxl/vrhS+4TLjJ2MMOQ9QSEUaRo9U4k6jV +Pzl6oMxBSeVMtp9EkqWOyx+pgTTdE9TAVye773/M6A+yYH1aR23fraB7YF2aH24hgzL3n zgcStHIACm7GS4FntDKtI3pYWEgwUL7q9eaY7PK4Bo0exdD+b6uRnOMXpNUS7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720731482; a=rsa-sha256; cv=none; b=dAO7Bs4rmGIw75f78Lpck88vEO5UFcB/lSZdWCU0d6GdMf4nS/QFpSK5bT17U1Y6aOMV4N fzTYyEmscVUEbbbhImVKnZnc0avA20h7Dcm5SY+UxOPC8ISyzE5siNHpzLwf364b1ir8ne 3kqUj0Kt55voNVgXn1kEP87ql3IkHUZLC5YaSs/pEzNd+Lh+H7FV81nZVEX3lFJgsSBeUR mDNkds1atC8uNLCPSSnJBrKq+rqMj/uhbebmS1OgWKmoIDFxxvDkBDy6whMZQ7E5789lOE L09Mc+PFQEuiCf67mdci3ApHDVIEdwTvfCsb+ZYzC/bMXi0+XIClutRB1qhC+Q== 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 B1D3E16CFE for ; Thu, 11 Jul 2024 22:58:02 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sS0qy-0002ee-9p; Thu, 11 Jul 2024 16:57:24 -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 1sS0qv-0002eP-W4 for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 16:57:22 -0400 Received: from 96-100-31-185.ftth.cust.kwaoo.net ([185.31.100.96] helo=k-7.ch) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sS0qu-00012L-4j for emacs-orgmode@gnu.org; Thu, 11 Jul 2024 16:57:21 -0400 Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb) by k-7.ch (Postfix) with ESMTPSA id 68167E8109; Thu, 11 Jul 2024 22:57:17 +0200 (CEST) From: =?utf-8?Q?S=C3=A9bastien_Gendre?= To: Chris Keschnat Cc: emacs-orgmode@gnu.org Subject: Re: Capture from Firefox to Org-mode In-Reply-To: <871q42bo3u.fsf@catsu.it> (Chris Keschnat's message of "Tue, 09 Jul 2024 17:07:33 +0200") References: <87r0c2d75g.fsf@k-7.ch> <871q42bo3u.fsf@catsu.it> User-Agent: mu4e 1.12.1; emacs 29.4 Date: Thu, 11 Jul 2024 22:57:16 +0200 Message-ID: <87r0bzve8j.fsf@k-7.ch> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@k-7.ch; helo=k-7.ch X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, RDNS_DYNAMIC=0.982, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TVD_RCVD_IP=0.001 autolearn=no 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-Migadu-Queue-Id: B1D3E16CFE X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.50 X-Spam-Score: -8.50 X-TUID: WM0DsGO3jEXh --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Thank you for the suggestions, I will take a look. Chris Keschnat writes: > 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 he= lps. > >> 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 en= try >> 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") "= Inbox") > "* %^{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.or= g") "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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmaQRywLHHNlYkBrLTcu Y2gACgkQtYb3x3I54p5FsxAAgkW57YAbNixHFZPzwgf6PU7DlpP+h/unXel0Qz49 iWvcUlhwrzQUlxVea/+Cos6MldBds3umX7aeGlLEo9nZcwrh2OkW/Wsq576c4tmk 42R2cygrd9aNS+HKsn+M6fUItoPYRQO9Ju7+7aTT5qNOZVn9soG40ZRe1SyUhNqt bITXnnjcQeF4//jZ9cWxD6fi0gGfODBXnMphBflddZPQzdwPUarEWSl4ltKfWRir dOub5hv6XcAefp+eXgdK0Ejmmxozr/sPdD4iSP/KgqoP/YQAZJxHDprfJTELMj4U JVmNjqAuRzYeIrlvU94W8sSM8EPfQsfohsFKc8O0iHehIEBqhOJUdp00jHniGh/h e8nqFzsh4+f/6r9kZcUJCNSldtGx41dgJuFx2pF4Wp7CAQCVunvzGsKxjdPQmSGv rzRSgI1R6jumEFmUQkqcej4ri8Oq9CR+EFsINolceZBjFfCUE/txFQJ9MghkYTmC eA7pj763+jVSTOnVvRAHjXYmozhbilcEQ4gcnv2+2v68Yy2vgvggjOWZLgNO2Q+J KtgLEgk2XE/zW4big8VGTts6FQcONJMcRTiz3Q9LrmN4S+TAmaYk8RZcwcde4iit YRkJ0vhYv7xj3Ilchrk3bZ4PvKChWD/6GmauRhG3M8ZnD34K/fxs9BKuvPjdZqKA WXE= =ZPFk -----END PGP SIGNATURE----- --=-=-=--