Coder Social home page Coder Social logo

sync-diigo-to-folder's Introduction

Sync all your Diigo bookmarks to a directory as Markdown files. Intended for use with Obsidian.

Install

npm i -g sync-diigo-to-folder

Use

sync-diigo-to-folder --path=/Users/tehshrike/Obsidian/Bookmarks --all --user=DIIGO_USERNAME --password=DIIGO_PASSWORD --apiKey=DIIGO_API_KEY

This script is meant to be idempotent, so that you can re-run it over and over without losing any data other than what originally came from Diigo.

By default it only reads the most recently-updated batch of bookmarks.

Arguments

  • path: the directory to write output files to
  • all: (default off) โ€“ whether to save the most recently-updated bookmarks, or only one request's worth
  • countPerRequest: (default 20) โ€“ How many bookmarks to fetch per API request. Max 100.
  • user: your Diigo username
  • password: your Diigo password
  • apiKey: your Diigo API key
  • datePrefix: a string to prefix the [[YYYY-MM-DD]] date links with (e.g. Day/)

Output

Right now the output for a bookmark of a site like https://danluu.com/corp-eng-blogs/ looks like:

# How (some) good corporate engineering blogs are written

- tags: #writing #marketing #blogging
- url: https://danluu.com/corp-eng-blogs/
- cached: [On Diigo](https://www.diigo.com/cached?url=https%3A%2F%2Fdanluu.com%2Fcorp-eng-blogs%2F)
- created: [[2020-07-13]]

---

the intention is that you can put your own notes below the --- separator as desired. Any changes above the separator will be overwritten by changes to your bookmark in Diigo.

If you typed a description into Diigo, that description will be placed below the --- separator on first write. Updated descriptions will not be written to a pre-existing file.

License

WTFPL

sync-diigo-to-folder's People

Contributors

tehshrike avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sync-diigo-to-folder's Issues

Could this Become an Obsidian Plugin?

I've had hard time finding good support for web highlights in Obsidian. I'll try this out as it could be just right, but if it could become a plugin for Obsidian it would be that much easier? I'm fond of the one that pulls in Amazon book highlights for example.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.