-
-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Import from other places #66
Comments
I had something in some branch years ago (iirc it was importing from Delicious), but there's nothing supported in the app right now. You could easily write an import script for node.js and/or browsers, using rs.js and the bookmarks module. Something like this should be enough (not tested): import RemoteStorage from 'remotestoragejs';
import RemoteStorage from 'remotestorage-module-bookmarks';
const remoteStorage = new RemoteStorage({modules: [Bookmarks.default]});
remoteStorage.access.claim('bookmarks', 'rw');
remoteStorage.connect('[email protected]', 'this-could-be-an-oauth-token');
const bookmarks = [];
// Fill up bookmarks with stuff to import;
function importBookmarks () {
bookmarks.forEach(bookmark => {
remoteStorage.bookmarks.archive.store({
title: bookmark.title,
url: bookmark.url,
description: bookmark.desc,
tags: bookmark.tags // array of strings
})
.then(() => console.log(`Imported ${bookmark.url}`).
.catch(err => console.error(`Failed to import ${bookmark.url}:`, err));
});
}); The |
I definitely want some kind of feature to import bookmarks from popular silos. However, I'm wondering if it belongs in Webmarks itself, or if it should be part of some larger data liberation app/agent. I guess even if the app wouldn't connect to proprietary APIs, it could at least allow to import from exported-data files from those services. |
Is there an easy way to import bookmarks from other places?
Or maybe there's a way to inject the data directly on remoteStorage, but what is the format the data is expected to have?
The text was updated successfully, but these errors were encountered: