Extend Unmark's importer to support new services
Closed this issue · 13 comments
Currently supported: Browser exports from Safari, Chrome, Firefox. Also Pinboard and Delicious.
What else would you like to see?
- Shaarli (taken from comment on #45 )
- Instapaper
- Wallabag
What else?
@nothing-fr updated.
kippt.com (exports to a "Netscape bookmarks html format")
Add a vote to Instapaper for me.
Out of personal need i created importers as a custom extension to unmark.
https://github.com/ckrack/unmark/tree/custom-import
I will not create a pull request, as these already seem to be in the private code and the ones i created are tweaked as in creating tags for the bookmark folders of netscape import.
Also the code is not the cleanest, as i tried to use the Mark_Import class without changing it, and it's depending on checks like the one for export_version, that are dependent on the JSON Importer and are not needed for other imports..
This is how i'd be going about it:
- Create an
interface
that all importers use. Basically theimportFile
andvalidateUpload
methods. - Make the counting and result returning simpler
- uncouple the dependencies in
Mark_Import
- add a config option that contains the importers, which is then cycled over in the controller.
$importers = ['delicious', 'json', 'pocket'];
that way others can be added easily..
But then again, you might have all this already?
del.icio.us, which only allows export to HTML.
@ckrack you are a sir among beings - I just used your branch to import several thousand bookmarks from del.icio.us after a weekend of hacking to write a Netscape bookmarks-to-Unmark JSON document converter. Your code just saved my sanity - PLEASE file a pull request!
@ckrack I'm going to look through your extension... as I didn't in the past and see what we can pull from it.
So I should already be seeing an option to import from browser? I have 1.7.1.2 installed, and only see "Unmark file" and "Readability file".