mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-25 17:16:00 +03:00
[GH-ISSUE #319] Feature Request: Import Safari history #1740
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#1740
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 @wvdk on GitHub (Feb 3, 2020).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/319
This is more of a hey-how-much-work-would-this-be than a serious feature request. I'm just getting interested in this archiving space. My preferred browser on macOS is Safari for a number of reasons. My ideal setup would be a daily job which runs ArchiveBox the latest history from Safari. Interested in hearing people's thoughts on this.
Type
What is the problem that your feature request solves
Ability to create automated archives of all websites visited via Safari browser
Describe the ideal specific solution you'd want, and whether it fits into any broader scope of changes
I believe Safari keeps its history in a sqlite db. I don't yet know much about ArchiveBox's input methods but I imaging this could be quite a bit of work if it's currently only built to handle stdin and simple text formats.
What hacks or alternative solutions have you tried to solve the problem?
None really. I did try importing Safari's exported bookmarks (which ArchiveBox returned
[X] No links found :(but that's a separate problem). I'd really like to be able to run ArchiveBox on the browser's history.How badly do you want this new feature?
@pirate commented on GitHub (Feb 4, 2020):
It's super easy to add.
@wvdk commented on GitHub (Feb 4, 2020):
Wow, perfect. Completely spaced on the fact that I can so easily query sqlite. Shows how little I know lol. Thanks a bunch @pirate.
Note for any future visitors: Had to make a copy of the History.db file (it seems to be protected by Safari but a copy of it is easily queryable).
@pirate commented on GitHub (Feb 4, 2020):
I'm actually going to reopen this as a TODO: to add Safari history dumping support to the
bin/archivebox-export-browser-historyscript.@pirate commented on GitHub (Feb 4, 2020):
Aaaaand done, that was fast haha...
github.com/pirate/ArchiveBox@0c1b1b523cFor now this just dumps the URLs, ideally in the future we should also import the URLs together with their respective "Last Visit" timestamps so that history order is preserved.
@pirate commented on GitHub (Feb 4, 2020):
And added to the docs here: https://github.com/pirate/ArchiveBox/wiki/Usage#import-list-of-links-from-browser-history