Shaarli
Shaarli copied to clipboard
Allow import from Firefox's JSON backup files
The problem with exports of bookmarks with firefox is that it drops all the tags. This is not the case with the JSON backup option.
I really wanted it so you can find it in my fork. Since I am a git beginner, I did not manage in the end to dissociate it from another thing I tried to do : allow to use a tag separator different from the space.
Moreover, the code is not of a good quality, especially for the "enhanced" tag separator which definition is currently located in a define.
Just mentioning this tool https://github.com/pikzen/ffbookmark that allows doing the opposite (converts shaarli's HTML export file to JSON suitable for import - including tags - in Firefox)
@sijnak Your JSON import feature looks really good, and now we also have a way to import HTML bookmarks with tags into Shaarli (https://github.com/sebsauvage/Shaarli/pull/80), so this looks very promising.
About importing Shaarli bookmarks in Firefox, the tool I've mentioned doesn't work so well, and requires mono/.net which is a huge dependency. Do you think you could adapt your work to manage exporting from Shaarli as JSON?
I did not manage in the end to dissociate it from another thing I tried to do
Maybe you would be able to differentiate the changes by using diff
or meld
(http://meldmerge.org/) against an original Shaarli release and your fork.
Thanks @nodiscc !
Concerning JSON export I think it is possible but painfull to do. I found no official documentation for the JSON format and, if I could guess where were the informations I needed for the import, I don't feel like using the same method for producing an export for firefox since I could miss some important points.
Well , this is only for the time being and I could try later to go further. However, My guess is that the best would be an addon for each browser allowing to sync. This way, the integrated functions of the browser for creating a new bookmark and searching among them would be usable again.
By the way, I still need to make some cleaning and fine-tuning but I don't have te time for it right now.
Le 22/06/13 14:23, nodiscc a écrit :
@sijnak https://github.com/sijnak Your JSON import feature looks really good, and now we also have a way to import HTML bookmarks with tags into Shaarli (#80 https://github.com/sebsauvage/Shaarli/issues/80), so this looks very promising.
About importing Shaarli bookmarks in Firefox, the tool I've mentioned doesn't work so well, and requires mono/.net which is a huge dependency. Do you think you could adapt your work to manage exporting from Shaarli as JSON?
I did not manage in the end to dissociate it from another thing I tried to do
Maybe you would be able to differentiate the changes by using |diff| or |meld| (http://meldmerge.org/) against an original Shaarli release and your fork.
— Reply to this email directly or view it on GitHub https://github.com/sebsauvage/Shaarli/issues/74#issuecomment-19855928.
I'm also interested by this feature, at the least the import, I can't find any pull request, did you submit one ?
I actually didn't because I need to re-order the commits and even split some of them which I'm too lazy to do right now. Furthermore, I'm not sure at all about the quality of what I wrote.
If you still want to give a try, you can have a look at the code I wrote. The interesting part is in the functions 'importFile()' and 'parse_firefox()'.
Le 07/01/2014 11:40, Nicolas Morel a écrit :
I'm also interested by this feature, at the least the import, I can't find any pull request, did you submit one ?
— Reply to this email directly or view it on GitHub https://github.com/sebsauvage/Shaarli/issues/74#issuecomment-31727691.