Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karlicoss/pinbexport
Export your bookmarks from Pinboard
https://github.com/karlicoss/pinbexport
backup data-liberation export pinboard takeout
Last synced: 2 months ago
JSON representation
Export your bookmarks from Pinboard
- Host: GitHub
- URL: https://github.com/karlicoss/pinbexport
- Owner: karlicoss
- License: mit
- Created: 2019-09-29T12:15:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-06T23:01:03.000Z (about 1 year ago)
- Last Synced: 2024-05-30T01:15:22.389Z (7 months ago)
- Topics: backup, data-liberation, export, pinboard, takeout
- Language: Python
- Homepage:
- Size: 30.3 KB
- Stars: 23
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+begin_src python :dir src :results drawer :exports results
import pinbexport.export as E; return E.make_parser().prog
#+end_src#+RESULTS:
:results:
Export your bookmarks from [[https://pinboard.in][Pinboard]]
:end:* Setting up
1. The easiest way is ~pip3 install --user git+https://github.com/karlicoss/pinbexport~.Alternatively, use ~git clone --recursive~, or ~git pull && git submodule update --init~. After that, you can use ~pip3 install --editable~.
2. Get your Pinboard =token= from [[https://pinboard.in/settings/password][password]] page.* Exporting
#+begin_src python :dir src :results drawer :exports results
import pinbexport.export as E; return E.make_parser().epilog
#+end_src#+RESULTS:
:results:Usage:
*Recommended*: create =secrets.py= keeping your api parameters, e.g.:
: token = "TOKEN"
After that, use:
: python3 -m pinbexport.export --secrets /path/to/secrets.py
That way you type less and have control over where you keep your plaintext secrets.
*Alternatively*, you can pass parameters directly, e.g.
: python3 -m pinbexport.export --token
However, this is verbose and prone to leaking your keys/tokens/passwords in shell history.
You can also import ~export.py~ this as a module and call ~get_json~ function directly to get raw JSON.
I *highly* recommend checking exported files at least once just to make sure they contain everything you expect from your export. If not, please feel free to ask or raise an issue!
:end: