On Tue, Jul 9, 2024 at 11:08 AM Chris Keschnat <ch...@catsu.it> wrote:
> Sébastien Gendre <s...@k-7.ch> 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 > helps. > > > How to capture data from a web page to Org-mode ? > > > > * What I need > > I want to be able to capture different kind of information : > > - 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 did 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) ? > > > > Is it possible, with Org-protocol, to pass data to be stored into org > entry > > properties, or an arbitrary string ? > > 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.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 ? > > 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 > >