mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #648] Documentation: document how to pull bookmarks from Firefox Sync #1914
Labels
No labels
expected: maybe someday
expected: next release
expected: release after next
expected: unlikely unless contributed
good first ticket
help wanted
pull-request
scope: all users
scope: windows users
size: easy
size: hard
size: medium
size: medium
status: backlog
status: blocked
status: done
status: idea-phase
status: needs followup
status: wip
status: wontfix
touches: API/CLI/Spec
touches: configuration
touches: data/schema/architecture
touches: dependencies/packaging
touches: docs
touches: js
touches: views/replayers/html/css
why: correctness
why: functionality
why: performance
why: security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ArchiveBox#1914
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @khimaros on GitHub (Feb 6, 2021).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/648
Wiki Page URL
https://github.com/ArchiveBox/ArchiveBox/wiki/Quickstart#2-get-your-list-of-urls-to-archive
Suggested Edit
document how to pull bookmarks and/or history from the Firefox Sync server.
this enables the user to simply bookmark pages they want to archive on their desktop and mobile browser and they will automatically be archived by archivebox.
here's what worked for me.
determine your Firefox Sync client id:
import all of your bookmarks into archivebox:
this also works with a self hosted Firefox Sync server by setting the env var
TOKENSERVER_URL="https://<YOUR SYNC SERVER>/token". you can configure this to run on a regular schedule eg. via cron.with a bit of work, you could make this only archive bookmarks with a specific tag or folder.
@kominoshja commented on GitHub (Nov 30, 2021):
Note: This requires disabling 2FA while setting it up
@kominoshja commented on GitHub (Nov 30, 2021):
When you issue
python3 syncclient/main.py -u <YOUR EMAIL> --client-id <YOUR CLIENT ID> get_records bookmarks, you get something liketherefore, jq fails. You'd need to run
python3 syncclient/main.py -u <YOUR EMAIL> --client-id <YOUR CLIENT ID> get_record bookmarks --decrypt 6J***********3Vk | jq '.payload | fromjson | select(.type == "bookmark") | .bmkUri'I created the following script to iterate over the response and add bookmarks to archivebox (Keep in mind you need to change
BATCH_SIZEto archive more than 4 at a time): https://gist.github.com/kominoshja/484dd83f978079daf6c3bacebb21fe37@pirate commented on GitHub (Jan 19, 2024):
Going to close this for now, I'll add a link to this issue from the README in case it helps ppl in the future trying to set this up.