This is for a Unix shell (because of
and for Firefox (because FF exports bookmarks as JSON, where each entry has a
- Make sure you have
- 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
for i in `cat /tmp/bookmarks.json | jq '[.. | .uri? | select(.) ]' | cut -d '"' -f 2`; do wget -r -l 1 $i done
This will create directories for each domain, under the current dir.
Pass larger integers to
-l if you want to dig deeper into each URL.
Thanks to jq recipes