Skip to content

Instantly share code, notes, and snippets.

@teebow1e
Last active September 29, 2024 14:07
Show Gist options
  • Select an option

  • Save teebow1e/e9f867083365d6f4f7e8c94bd2afacd0 to your computer and use it in GitHub Desktop.

Select an option

Save teebow1e/e9f867083365d6f4f7e8c94bd2afacd0 to your computer and use it in GitHub Desktop.
crawl opendir
#!/bin/bash
wget --recursive \
--no-parent \
--convert-links \
--random-wait --wait 3 --no-http-keep-alive \
--no-host-directories \
--execute robots=off --user-agent=Mozilla/5.0 \
--level=inf --accept '*' \
--reject="index.html*" \
--cut-dirs=0 \
$1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment