This is for a Unix shell (because of for, cut, wget, etc)
and for Firefox (because FF exports bookmarks as JSON, where each entry has a uri property).
YMMV.
- Make sure you have
wgetinstalled - Install jq
- Export all your bookmarks (or a subset) as a JSON file:
Ctrl+Shift+O → Import and Backup → Backup…
(say you save it as/tmp/bookmarks.json)
for i in `cat /tmp/bookmarks.json | jq '[.. | .uri? | select(.) ]' | cut -d '"' -f 2`; do
wget -r -l 1 $i
doneThis will create directories for each domain, under the current dir.
Pass larger integers to wget param -l if you want to dig deeper into each URL.
Thanks to jq recipes