Created
March 10, 2019 17:56
-
-
Save peterwwillis/58fe5ae05a2c2879a89cbf11536f820f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Exports your bookmarks.html and converts them to a simple text file, one URL per line | |
BOOKMARKS_FILE="$1" | |
cat "$BOOKMARKS_FILE" | grep HREF | sed -e 's/^.*HREF="\([^"]*\)".*$/\1/ig' | grep -i ^http | sort -u > httrack-bookmarks.txt | |
# Get all bookmarks with httrack. | |
# NOTE: this disables all of httrack's "safety features" | |
httrack -O foo -i -iC2 -c20 -%c200 -%! -r1 -n -%k -%L httrack-bookmarks.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment