Skip to content
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

Feature Request: Import links directly from xBrowserSync JSON #538

Open
5 of 9 tasks
TheCakeIsNaOH opened this issue Nov 14, 2020 · 1 comment
Open
5 of 9 tasks
Labels
expected: unlikely unless contributed This change is unlikely to be made unless someone contributes a PR for review. good first ticket help wanted size: medium status: idea-phase Work is tentatively approved and is being planned / laid out, but is not ready to be implemented yet touches: docs why: functionality Intended to improve ArchiveBox functionality or features

Comments

@TheCakeIsNaOH
Copy link
Contributor

Type

  • General question or discussion
  • Propose a brand new feature
  • Request modification of existing behavior or design

What is the problem that your feature request solves

I would like to be able to add the links I have bookmarked in xBrowserSync directly into ArchiveBox.

Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes

I would like to be able to:

  1. Add links directly from the xBrowserSync json format. This would require a parser to be added.
  2. Subscribe to my xBrowserSync "sync" (basically account), and update links as needed. This would require specifying URL and password in the configuration and/or in the CLI. This would also require adding decryption, decompression, and parsing of the json.
  3. Filter which folders the bookmarks are added from. There are lots of bookmarks I have that have no need to be in archivebox. This is part where I am not sure if there are more changes that would be required, specifically if filtering inputted links is more global, or if it is just for this.

The json format is the same for both the backup/export from the extension, and directly from the API. From the web API, it first has to be decrypted (AES-GCM), and then decompressed (lzutf8).

I do currently have a python script for doing this, but I'm not sure what changes would need to be made to integrate with ArchiveBox. I'm new to python, so there probably lots of things that aren't ideal python practice.
https://github.com/TheCakeIsNaOH/xbs-to-archivebox

I'm definitely willing to work on developing this, I'm just checking in / looking for feedback before starting work.

Useful links:
https://api.xbrowsersync.org/
xbrowsersync/app#105
https://gist.github.com/nero120/e878e40b14655c9526680472376b4f8c
https://github.com/b-01/lzutf8.py

What hacks or alternative solutions have you tried to solve the problem?

I currently use a python script to download, decompress, and filter my xBrowserSync bookmarks, and it outputs a list of URLs that I then manually add to ArchiveBox. See the previous section for link. I would prefer that this be built into ArchiveBox.

How badly do you want this new feature?

  • It's an urgent deal-breaker, I can't live without it
  • It's important to add it in the near-mid term future
  • It would be nice to have eventually

  • I'm willing to contribute dev time / money to fix this issue
  • I like ArchiveBox so far / would recommend it to a friend
  • I've had a lot of difficulty getting ArchiveBox set up
@TheCakeIsNaOH TheCakeIsNaOH added why: functionality Intended to improve ArchiveBox functionality or features status: idea-phase Work is tentatively approved and is being planned / laid out, but is not ready to be implemented yet labels Nov 14, 2020
@pirate pirate changed the title Feature Request: Import links directly from xBrowserSync Feature Request: Import links directly from xBrowserSync JSON Mar 1, 2024
@pirate pirate mentioned this issue Mar 1, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
expected: unlikely unless contributed This change is unlikely to be made unless someone contributes a PR for review. good first ticket help wanted size: medium status: idea-phase Work is tentatively approved and is being planned / laid out, but is not ready to be implemented yet touches: docs why: functionality Intended to improve ArchiveBox functionality or features
Projects
None yet
Development

No branches or pull requests

2 participants