/hist_safari2chrome

Import Safari history into Chrome

Primary LanguageRuby

Import Safari history into Chrome

Simple script that imports entries from the Safari history database into that of Chrome

Screenshot

Usage

Back up first.

$ bundle exec ruby import.rb safari.db chrome.db [--verbose --progress]

Can be run multiple times as the import process is indempotent. Indeed, duplicates are removed at the end.

Locations of SQLite database files in macOS:

  • Safari: ~/Library/Safari/History.db
  • Chrome: ~/Library/Application Support/Google/Chrome/Default/History

Credits

Thanks to @dropmeaword. This script is inspired by his gist browser_history.md.