Skip to content

Instantly share code, notes, and snippets.

@ThomasG77
Created March 21, 2024 13:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ThomasG77/d637d816765c59bf6b9d34430d1ca68a to your computer and use it in GitHub Desktop.
Save ThomasG77/d637d816765c59bf6b9d34430d1ca68a to your computer and use it in GitHub Desktop.
HTML browser favorites to CSV recipe with CLI

HTML browser favorites to CSV

Need pup (Go based), jq (install as binary) and he (Node based)

Take the html export from your browser

cat your_favorites.html | pup a json{} | jq -c -r '["title","url"], (.[] | [.text,.href]) | @csv' | he --decode >| your_favorites_decoded.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment