I decided to phase out my use of the Pinboard bookmarking service, and am now just keeping those bookmarks in Drafts (go figure!) using the share extension/capture tools.
I did not want to lose my history, so I created an action to import my history into Drafts from a Pinboard backup file.
If this is something you might do, I suggest reviewing the action - particularly you might want to modify the “template” variable in the first script step to alter the format of the imported drafts.
To use this action:
- Go to Pinboard, click on “settings”, then “backup”
- Download a JSON format backup of your pins.
- Place the downloaded file in your
iCloud Drive/Drafts
folder, and rename it “pinboard_export.json” - Install the Import Pinboard Backup action.
- Run it…the action will:
- Read the import file, and make sure it can be parsed and is valid.
- Prompt you letting you know how many pins will be imported
- Ask for an optional additional tag to assign, which defaults to “pinboard”. Any tags you assigned in Pinboard will also be assigned as drafts tags, but this additional tag can be used to identify the imported items later.
- Choose whether you want the new drafts in the inbox or archive (archive is default).
- After prompt, the action will create a new draft, using the template configured in the action, for each pin in the backup. The draft will contain the title, description, url, any assigned tags, and the creation date of the draft will match the original timestamp of the pin.
That’s pretty much it. Feel free to tweak to your particular needs. Get the action: